From 0e76ca890cb900fbc5f797cc480ce66d6ecc2bb9 Mon Sep 17 00:00:00 2001 From: Bsian Date: Wed, 30 Oct 2019 18:35:30 +0000 Subject: [PATCH] Fixed a few stuff --- src/commands/pull.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/pull.ts b/src/commands/pull.ts index 1db19f9..9c216e5 100644 --- a/src/commands/pull.ts +++ b/src/commands/pull.ts @@ -23,7 +23,7 @@ export default class Pull extends Command { return updateMessage.edit(`${this.client.stores.emojis.error} ***Could not fetch latest commit***\n\`\`\`sh\n${error.message}\n\`\`\``); } if (pull.includes('Already up to date')) return updateMessage.edit(`${this.client.stores.emojis.success} ***No updates available***`); - if (!pull.includes('origin/master')) return updateMessage.edit(`${this.client.stores.emojis.error} ***Unexpected output:***\n\`\`\`bs\n${pull}\n\`\`\``); + if (!pull.includes('origin/master')) return updateMessage.edit(`${this.client.stores.emojis.error} ***Unexpected output:***\n\`\`\`sh\n${pull}\n\`\`\``); const passedPull = await updateMessage.edit(`${this.client.stores.emojis.success} ***Pulled latest commit***\n${this.client.stores.emojis.loading} ***Rebuilding files...***`); try { @@ -36,7 +36,7 @@ export default class Pull extends Command { const finalMessage = passedPull.content.replace(`${this.client.stores.emojis.loading} ***Rebuilding files...***`, `${this.client.stores.emojis.success} ***Files rebuilt***`); - return message.edit(finalMessage); + return updateMessage.edit(finalMessage); } catch (error) { return this.client.util.handleError(error, message, this); }