Added discord support to summmon
This commit is contained in:
parent
b12ad1c229
commit
d80fe57567
|
@ -56,16 +56,18 @@ module.exports = class Summon {
|
|||
text = `${text} in channel ${this.channel}`;
|
||||
text = `${text} for reason: ${reason}`;
|
||||
|
||||
this.transporter.sendMail({
|
||||
from: this.client.config.email,
|
||||
to: `${user}@tilde.team`,
|
||||
subject: subject,
|
||||
text: text
|
||||
}, (err, info) => {
|
||||
// DEBUG
|
||||
// console.log("Summon::email", info);
|
||||
response.debug.email = info;
|
||||
});
|
||||
if (!user.startsWith("@")) {
|
||||
this.transporter.sendMail({
|
||||
from: this.client.config.email,
|
||||
to: `${user}@tilde.team`,
|
||||
subject: subject,
|
||||
text: text
|
||||
}, (err, info) => {
|
||||
// DEBUG
|
||||
// console.log("Summon::email", info);
|
||||
response.debug.email = info;
|
||||
});
|
||||
}
|
||||
|
||||
// I obvious don't know everyone's Pushbullet API
|
||||
if (user === this.client.config.author) {
|
||||
|
|
Loading…
Reference in New Issue