add email transporter to util

merge-requests/6/merge
Matthew 2020-06-15 21:34:54 -04:00
parent 826f28556e
commit 1d581a8639
No known key found for this signature in database
GPG Key ID: F841AB9BF496C194
1 changed files with 8 additions and 0 deletions

View File

@ -1,4 +1,5 @@
/* eslint-disable no-bitwise */
import nodemailer from 'nodemailer';
import signale from 'signale';
import { Member, Message, Guild, PrivateChannel, GroupChannel, Role, AnyGuildChannel } from 'eris';
import { Client, Command, Moderation, RichEmbed } from '.';
@ -11,6 +12,8 @@ export default class Util {
public signale: signale.Signale;
public transporter: nodemailer.Transporter;
constructor(client: Client) {
this.client = client;
this.moderation = new Moderation(this.client);
@ -20,6 +23,11 @@ export default class Util {
displayTimestamp: true,
displayFilename: true,
});
this.transporter = nodemailer.createTransport({
host: 'staff.libraryofcode.org',
port: 587,
auth: { user: 'internal', pass: this.client.config.emailPass },
});
}
get emojis() {