Block 0000 uuid from running commands
This commit is contained in:
parent
1d0f1e97f5
commit
5eafd63404
1 changed files with 1 additions and 0 deletions
|
@ -9,6 +9,7 @@ module.exports={
|
|||
b.prefix=["\"", "ubot:"]
|
||||
b.lastCmd=0;
|
||||
b.runCommand=(name, uuid, text, prefix)=>{
|
||||
if(uuid="00000000-0000-0000-0000-000000000000") return;
|
||||
if(Date.now-b.lastCmd<=1000){
|
||||
console.log("Executed too early, "+(Date.now-b.lastCmd)+"ms left");
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue