From 983d9898eb5bcf9d8c52f1f133ad092f4b7b33c1 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 20 Oct 2019 22:48:48 -0400 Subject: [PATCH] add mail transporter to Util --- src/Util.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Util.ts b/src/Util.ts index 5bec43b..5fbe018 100644 --- a/src/Util.ts +++ b/src/Util.ts @@ -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 {