add mail transporter to Util

merge-requests/1/merge
Matthew 2019-10-20 22:48:48 -04:00
parent 8d9f6555ae
commit 983d9898eb
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 6 additions and 0 deletions

View File

@ -8,8 +8,14 @@ import { Command, RichEmbed } from './class';
export default class Util {
public client: Client;
public transport: nodemailer.Transporter;
constructor(client: Client) {
this.client = client;
this.transport = nodemailer.createTransport({
host: 'staff.libraryofcode.us',
auth: { user: 'support', pass: this.client.config.emailPass },
});
}
public async exec(command: string): Promise<string> {