add ping command

This commit is contained in:
Darius
2025-09-29 00:11:55 +02:00
parent 10eee0c0fd
commit dbfb4f5d86
7 changed files with 108 additions and 23 deletions

View File

@@ -40,7 +40,7 @@ async function checkMessage(
// logInfo(`searching for command: ${commandName}`);
const command = commands.get(commandName);
if (!command) return;
if (!command.checkPerms) return;
if (!command.checkPerms(msg.userInfo)) return;
const timeLeft = checkCooldown(command);
if (timeLeft > 0) {