Adding disabling of server

If someone runs a spam bot or spam commandloop, this can be used to prevent the bot from logging in there
This commit is contained in:
7cc5c4f330d47060 2024-07-23 13:15:31 -04:00
parent 67a4a917ba
commit 9317491ebb

View file

@ -34,6 +34,10 @@ const loadplug = (botno) => {
loadplug()
const createBot = function createBot(host,oldId){
if(host.options.disabled){
console.log(`Skipping server ${host.host}:${host.port}`)
return;
}
const bot = new EventEmitter();
bot._client = m.createClient({
host: host.host,