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:
parent
67a4a917ba
commit
9317491ebb
1 changed files with 4 additions and 0 deletions
4
index.js
4
index.js
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue