add email transporter to util
parent
826f28556e
commit
1d581a8639
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue