Added discord support to summmon

This commit is contained in:
aewens 2018-07-16 18:31:32 -04:00
parent b12ad1c229
commit d80fe57567
1 changed files with 12 additions and 10 deletions

View File

@ -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) {