Block 0000 uuid from running commands

This commit is contained in:
7cc5c4f330d47060 2024-07-16 17:21:33 -04:00
parent 1d0f1e97f5
commit 5eafd63404

View file

@ -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;