You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improved cleverbot fail detection
Tons of very small optimizations
Added the fortune command
Re-wrote ]help pagination
Added extended help for some commands
Track if servers are actually using the bot
Improved choose
Allow unicode through ]anime and ]manga
Added title to ]image
(ignore the base for remind)
Added whitelist for inactivity removal
Added a config option to let users set the game
Always send kick/ban message
Added help option to }settings
Re-wrote cooldown
Updated config checks
Updated eval
bot.sendMessage(msg,msg.author.username+", you need to *cooldown* ("+Math.round(left)+" seconds)",function(erro,message){bot.deleteMessage(message,{"wait": 6000});});
bot.sendMessage(msg,msg.author.username.replace(/@/g,'@\u200b')+", you need to *cooldown* ("+Math.round(((lastExecTime[cmd][msg.author.id]+commands.commands[cmd].cooldown*1000)-now)/1000)+" seconds)",(e,m)=>{bot.deleteMessage(m,{"wait": 6000});});
bot.sendMessage(msg,msg.author.username+", you need to *cooldown* ("+Math.round(left)+" seconds)",function(erro,message){bot.deleteMessage(message,{"wait": 6000});});
bot.sendMessage(msg,msg.author.username.replace(/@/g,'@\u200b')+", you need to *cooldown* ("+Math.round(((lastExecTime[cmd][msg.author.id]+mod.commands[cmd].cooldown*1000)-now)/1000)+" seconds)",(e,m)=>{bot.deleteMessage(m,{"wait": 6000});});
}elseif(userNew.status!=userOld.status){console.log(colors.cDebug(" PRESENCE ")+userNew.username+" is now "+userNew.status+" playing "+userNew.game.name);}
toSend.push("For help / feedback / bugs/ testing / info / changelogs / etc. go to **https://discord.gg/0kvLlwb7slG3XCCQ**");
227
220
bot.sendMessage(server.defaultChannel,toSend);
228
221
db.addServer(server);
222
+
db.addServerToTimes(server);
229
223
}
230
224
});
231
225
}
@@ -254,29 +248,30 @@ function reload() {
254
248
}
255
249
256
250
functioncheckConfig(){
257
-
if(config.email===null){console.log(colors.cWarn(" WARN ")+"Email not defined");}
258
-
if(config.password===null){console.log(colors.cWarn(" WARN ")+"Password not defined");}
259
-
if(config.command_prefix===null||config.command_prefix.length!==1){console.log(colors.cWarn(" WARN ")+"Prefix either not defined or more than one character");}
260
-
if(config.mod_command_prefix===null||config.mod_command_prefix.length!==1){console.log(colors.cWarn(" WARN ")+"Mod prefix either not defined or more than one character");}
261
-
if(config.admin_id===null){console.log(colors.cYellow("Admin user's id not defined")+" in config");}
262
-
if(config.mal_user===null){console.log(colors.cYellow("MAL username not defined")+" in config");}
263
-
if(config.mal_pass===null){console.log(colors.cYellow("MAL password not defined")+" in config");}
264
-
if(config.weather_api_key===null){console.log(colors.cYellow("OpenWeatherMap API key not defined")+" in config");}
265
-
if(config.osu_api_key===null){console.log(colors.cYellow("Osu API key not defined")+" in config");}
251
+
if(!config.email){console.log(colors.cWarn(" WARN ")+"Email not defined");}
252
+
if(!config.password){console.log(colors.cWarn(" WARN ")+"Password not defined");}
253
+
if(!config.command_prefix||config.command_prefix.length!==1){console.log(colors.cWarn(" WARN ")+"Prefix either not defined or more than one character");}
254
+
if(!config.mod_command_prefix||config.mod_command_prefix.length!==1){console.log(colors.cWarn(" WARN ")+"Mod prefix either not defined or more than one character");}
255
+
if(!config.admin_id){console.log(colors.cYellow("Admin user's id")+" not defined in config");}
256
+
if(!config.mal_user){console.log(colors.cYellow("MAL username")+" not defined in config");}
257
+
if(!config.mal_pass){console.log(colors.cYellow("MAL password")+" not defined in config");}
258
+
if(!config.weather_api_key){console.log(colors.cYellow("OpenWeatherMap API key")+" not defined in config");}
259
+
if(!config.osu_api_key){console.log(colors.cYellow("Osu API key")+" not defined in config");}
260
+
if(!config.imgur_client_id){console.log(colors.cYellow("Imgur client id")+" not defined in config");}
266
261
}
267
262
268
263
functionevaluateString(msg){
269
264
if(msg.author.id!=config.admin_id){console.log(colors.cWarn(" WARN ")+"Somehow an unauthorized user got into eval!");return;}
0 commit comments