From 92e4ee5cc8e236eb67ab3085400fcc2202c228fc Mon Sep 17 00:00:00 2001 From: Bsian Date: Tue, 22 Oct 2019 00:57:58 +0100 Subject: [PATCH] Fixes --- src/Client.ts | 2 +- src/commands/announce.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Client.ts b/src/Client.ts index 440e653..901fc67 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -10,7 +10,7 @@ import { Command } from './class'; export default class Client extends Eris.Client { - public config: { 'token': string; 'cloudflare': string; 'prefix': string; }; + public config: { 'token': string; 'cloudflare': string; 'prefix': string; 'emailPass': string; }; public util: Util; diff --git a/src/commands/announce.ts b/src/commands/announce.ts index 2bf0af4..f825536 100644 --- a/src/commands/announce.ts +++ b/src/commands/announce.ts @@ -20,7 +20,7 @@ export default class Announce extends Command { if (args[0] === '-e') await this.client.util.exec(`echo "\n\n**************************************************************************\nEMERGENCY SYSTEM BROADCAST MESSAGE | Library of Code sp-us (root enforced)\n--------------------------------------------------------------------------\n\n\n${args.slice(1).join(' ')}\n\n\n\n\n\n\n\n\n\n\n\n\n" | wall -n`); else await this.client.util.exec(`echo "\nSYSTEM BROADCAST MESSAGE | Library of Code sp-us (root enforced)\n\n\n${args.join(' ')}" | wall -n`); message.delete(); - return notification.edit(`${this.client.stores.emojis.success} ***Sent announcement to all active terminals***`); + return notification.edit(`${this.client.stores.emojis.success} ***Sent${args[0] === '-e' ? ' emergency' : ''} announcement to all active terminals***`); } catch (error) { return this.client.util.handleError(error, message, this); }