This commit is contained in:
Ashley 2024-08-25 13:05:48 +00:00
parent 00ca80f59d
commit 07caa35eef

View file

@ -70,7 +70,7 @@ function doCommand(client, event, cmd, args) {
if(!command) if(!command)
return false; return false;
if((command.owner && event.sender.userId != process.env.OWNER_ID) || (command.admin && event.sender.powerLevel != 100 && event.sender.userId != process.env.OWNER_ID)) { if((command.owner && event.sender.userId != process.env.OWNER_ID) || (command.admin && event.sender.powerLevel < 100 && event.sender.userId != process.env.OWNER_ID)) {
var addl = `Are you sure this command is for you?\nYour power level is ${event.sender.powerLevel}`; var addl = `Are you sure this command is for you?\nYour power level is ${event.sender.powerLevel}`;
client.reply(event, "nuh uh" + addl, '<img src="mxc://possum.city/b4Vo1BTcq49B7TbFWCqq76HQWQEdNIqq" alt="nuh uh" /><br>' + addl); client.reply(event, "nuh uh" + addl, '<img src="mxc://possum.city/b4Vo1BTcq49B7TbFWCqq76HQWQEdNIqq" alt="nuh uh" /><br>' + addl);
return true; return true;