Fixed role mentioning not working

This commit is contained in:
benji7425 2017-01-22 17:40:05 +00:00
parent f4a8a40cd5
commit 3842f96be3
2 changed files with 2 additions and 4 deletions

View file

@ -6,12 +6,11 @@
"messageDeleteDelay": 10000, "messageDeleteDelay": 10000,
"youtubeMode": true, "youtubeMode": true,
"allowSubscriptions": true, "allowSubscriptions": true,
"subscribersRoleID": "268153160273625088", "subscribersRoleID": "268152490002874368",
"logFile": "./log", "logFile": "./log",
"userCommands": { "userCommands": {
"subscribe": "!subscribe", "subscribe": "!subscribe",
"unsubscribe": "!unsubscribe", "unsubscribe": "!unsubscribe",
"subscribersList": "!sublist",
"help": "!help" "help": "!help"
}, },
"developerCommands": { "developerCommands": {

View file

@ -184,7 +184,7 @@ var Subscriptions = {
}, },
mention: function () { mention: function () {
return "<@" + Config.subscribersRole + "> "; return "<@&" + Config.subscribersRoleID + "> ";
} }
}; };
@ -277,7 +277,6 @@ var intervalFunc = () => { }; //do nothing by default
//IIFE to kickstart the bot when the app loads //IIFE to kickstart the bot when the app loads
(function () { (function () {
Subscriptions.parse();
DiscordClient.startup(); DiscordClient.startup();
setInterval(() => { intervalFunc(); }, Config.pollingInterval); setInterval(() => { intervalFunc(); }, Config.pollingInterval);
})(); })();