From abe5af2f919c8c0cc953afb4e2c0fc7315ea4e2c Mon Sep 17 00:00:00 2001 From: Matthew R Date: Tue, 16 Jun 2020 22:35:26 -0400 Subject: [PATCH] log pages --- src/commands/page.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/page.ts b/src/commands/page.ts index 8e747b9..6ebc84b 100644 --- a/src/commands/page.ts +++ b/src/commands/page.ts @@ -67,6 +67,7 @@ export default class Page extends Command { public logPage(sender: { number: string, user?: string }, recipient: { number: string, user?:string }, code: string): void { const chan = this.client.guilds.get(this.client.config.guildID).channels.get('722636436716781619'); chan.createMessage(`***\`${sender.number} (${sender.user ? sender.user : ''})\` sent a page to \`${recipient.number} (${recipient.user ? recipient.user : ''})\` with code \`${code}\`.***`); + this.client.util.signale.log(`PAGE | TO: ${recipient.number}, FROM: ${sender.number}, code: ${code}`); } public async page(recipientNumber: string, senderNumber: string, code: string, message: Message): Promise<{status: boolean, message: string}> {