log pages

merge-requests/6/merge
Matthew 2020-06-16 22:35:26 -04:00
parent 9d4f3da073
commit abe5af2f91
No known key found for this signature in database
GPG Key ID: F841AB9BF496C194
1 changed files with 1 additions and 0 deletions

View File

@ -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 { public logPage(sender: { number: string, user?: string }, recipient: { number: string, user?:string }, code: string): void {
const chan = <TextableChannel> this.client.guilds.get(this.client.config.guildID).channels.get('722636436716781619'); const chan = <TextableChannel> 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}\`.***`); 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}> { public async page(recipientNumber: string, senderNumber: string, code: string, message: Message): Promise<{status: boolean, message: string}> {