From 3a02efef708251d38fdc88e21d00a6b2e5a3a46e Mon Sep 17 00:00:00 2001 From: TheEssem Date: Mon, 16 Dec 2019 15:32:47 -0600 Subject: [PATCH] Updated links to point to new GitHub repo name --- assets/pages/help.pug | 15 ++++++++------- commands/info.js | 2 +- events/messageCreate.js | 2 +- readme.md | 4 ++-- utils/help.js | 2 +- 5 files changed, 13 insertions(+), 12 deletions(-) diff --git a/assets/pages/help.pug b/assets/pages/help.pug index ba85962..98d35fb 100644 --- a/assets/pages/help.pug +++ b/assets/pages/help.pug @@ -25,14 +25,15 @@ head } body article#markdown.markdown-body - h1#img-srchttpsrawgithubusercontentcomtheessemesmbot-rewritemasteresmbotpng-width64-esmbot-dev-command-list - img(src='https://raw.githubusercontent.com/TheEssem/esmBot-rewrite/master/esmbot.png' width='64') + h1#img-srchttpsrawgithubusercontentcomtheessemesmbotmasteresmbotpng-width64-esmbot-dev-command-list + img(src='https://raw.githubusercontent.com/TheEssem/esmBot/master/esmbot.png' width='64') | esmBot Command List - p - strong - | You are currently using esmBot Dev! Things may change at any time without warning and there will be bugs. Many bugs. If you find one, - a(href='https://github.com/TheEssem/esmBot-rewrite/issues') report it here - | or in the esmBot Support server. + if dev + p + strong + | You are currently using esmBot Dev! Things may change at any time without warning and there will be bugs. Many bugs. If you find one, + a(href='https://github.com/TheEssem/esmBot/issues') report it here + | or in the esmBot Support server. p code [] | means an argument is required, diff --git a/commands/info.js b/commands/info.js index 6c546f2..bdfdf95 100644 --- a/commands/info.js +++ b/commands/info.js @@ -34,7 +34,7 @@ exports.run = async (message) => { }, { "name": "💻 Source Code:", - "value": "[Click here!](https://github.com/TheEssem/esmBot-rewrite)" + "value": "[Click here!](https://github.com/TheEssem/esmBot)" }, { "name": "<:twitter:652550515372064768> Twitter:", diff --git a/events/messageCreate.js b/events/messageCreate.js index ba0e938..dcb3020 100644 --- a/events/messageCreate.js +++ b/events/messageCreate.js @@ -52,7 +52,7 @@ module.exports = async (message) => { } } catch (error) { logger.error(error.stack); - await client.createMessage(message.channel.id, "Uh oh! I ran into an error while running this command. Please report the content of the attached file here or on the esmBot Support server: ", [{ + await client.createMessage(message.channel.id, "Uh oh! I ran into an error while running this command. Please report the content of the attached file here or on the esmBot Support server: ", [{ file: Buffer.from(`Message: ${error}\n\nStack Trace: ${error.stack}`), name: "error.txt" }]); diff --git a/readme.md b/readme.md index c97400e..fcb9bff 100644 --- a/readme.md +++ b/readme.md @@ -1,5 +1,5 @@ -# esmBot -[![esmBot Support](https://discordapp.com/api/guilds/592399417676529688/embed.png)](https://discord.gg/vfFM7YT) ![GitHub license](https://img.shields.io/github/license/TheEssem/esmBot-rewrite.svg) +# esmBot +[![esmBot Support](https://discordapp.com/api/guilds/592399417676529688/embed.png)](https://discord.gg/vfFM7YT) ![GitHub license](https://img.shields.io/github/license/TheEssem/esmBot.svg) esmBot is an entertainment-focused Discord bot made using [Eris](https://abal.moe/Eris/) with soundboard, utility, and image manipulation commands. diff --git a/utils/help.js b/utils/help.js index 3effebb..b7d42b7 100644 --- a/utils/help.js +++ b/utils/help.js @@ -34,7 +34,7 @@ module.exports = async (output) => { categories.soundboard.push(`${command}${params ? ` ${params}` : ""} - ${description}`); } } - fs.writeFile(output, pug.renderFile("./assets/pages/help.pug", { commands: categories }), () => { + fs.writeFile(output, pug.renderFile("./assets/pages/help.pug", { commands: categories, dev: process.env.NODE_ENV === "development" ? true : false }), () => { logger.log("The help docs have been generated."); }); }; \ No newline at end of file