diff --git a/plugins/commands/logoff.js b/plugins/commands/logoff.js index 71ef3ce..1eb6963 100644 --- a/plugins/commands/logoff.js +++ b/plugins/commands/logoff.js @@ -1,6 +1,6 @@ module.exports={ execute: (c)=>{ - if(c.type!="console") return; + if(c.verify<2) return; c.bot._client.end(); }, desc: "Does nothing", // Command description diff --git a/plugins/commands/stop.js b/plugins/commands/stop.js index da85dd2..b65a74c 100644 --- a/plugins/commands/stop.js +++ b/plugins/commands/stop.js @@ -1,6 +1,6 @@ module.exports={ execute: (c)=>{ - if(c.type!="console") return; + if(c.verify<2) return; process.exit(0); }, desc: "Restart bot", // Command description