fixed commandprefix, added discord support server invite to help command

This commit is contained in:
void
2020-02-15 01:32:07 +01:00
parent c78900f545
commit 205c5bf003
2 changed files with 4 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ module.exports = class DiscordBot extends Discord.Client {
this.config = null;
this.commands = {};
this.token = token;
this.invite = 'https://discord.gg/zx2BWp2';
}
send (msg, text) {
@@ -103,7 +104,7 @@ module.exports = class DiscordBot extends Discord.Client {
return new Promise((resolve, reject) => {
try {
this.config = this.db.webConfig['bot'];
this.config = this.config.commandprefix || "-";
this.config.commandprefix = this.config.commandprefix || "-";
this.registerEvents();
this.registerCommands(['ombi', 'sonarr', 'radarr', 'tautulli']);

View File

@@ -6,6 +6,8 @@ const buildHelpAllMsg = function(client, commands) {
let helpMsg = `To run a command in Mellow, use \`\`${client.config.commandprefix}command\`\`.\n` +
`To run a command in this DM, use \`\`command\`\` with no prefix.\n\n` +
'Use ``help <command>`` to view detailed information about a specific command.\n\n' +
`__**Discord Support Server**__\n` +
`${client.invite}\n\n` +
`__**Available commands in Mellow**__\n\n` +
'__Commands__\n';