From 723c46e3c4407f2b036c5cc7647d8b9e0debedd2 Mon Sep 17 00:00:00 2001 From: Bsian Date: Mon, 4 May 2020 12:18:57 +0100 Subject: [PATCH] Remove the shit that's breaking shit --- src/class/Util.ts | 2 -- src/commands/createaccount.ts | 1 - 2 files changed, 3 deletions(-) diff --git a/src/class/Util.ts b/src/class/Util.ts index a60eecd..d3880d8 100644 --- a/src/class/Util.ts +++ b/src/class/Util.ts @@ -44,7 +44,6 @@ export default class Util { cmd.stderr.on('data', writeFunction); cmd.on('error', writeFunction); cmd.once('close', (code, signal) => { - output += `Command exited with code ${code}${signal ? `/${signal}` : ''}`; cmd.stdout.removeListener('data', writeFunction); cmd.stderr.removeListener('data', writeFunction); cmd.removeListener('error', writeFunction); @@ -166,7 +165,6 @@ export default class Util { const account = new this.client.db.Account({ username, userID, emailAddress, createdBy: moderatorID, createdAt: new Date(), locked: false, tier: 1, supportKey: code, ssInit: false, ramLimitNotification: tier.resourceLimits.ram - 50, homepath: `/home/${username}`, }); - this.client.createMessage('592170164322041856', JSON.stringify(account)); return account.save(); } diff --git a/src/commands/createaccount.ts b/src/commands/createaccount.ts index f677dbc..d9047b0 100644 --- a/src/commands/createaccount.ts +++ b/src/commands/createaccount.ts @@ -37,7 +37,6 @@ export default class CreateAccount extends Command { const confirmation = await message.channel.createMessage(`${this.client.stores.emojis.loading} ***Creating account...***`); const data = await this.client.util.accounts.createAccount({ userID: args[0], username: args[2], emailAddress: args[1] }, message.author.id); - this.client.createMessage('592170164322041856', JSON.stringify(data)); message.delete(); return confirmation.edit(`${this.client.stores.emojis.success} ***Account successfully created***\n**Username:** \`${args[2]}\`\n**Temporary Password:** \`${data.tempPass}\``);