mirror of
https://github.com/v0idp/Mellow.git
synced 2025-12-19 04:19:30 -06:00
fixed commandprefix, added discord support server invite to help command
This commit is contained in:
@@ -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']);
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user