From d1ac674c6b211d58c540533cc3152d04fd8caa9e Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Tue, 6 Jun 2023 17:57:14 -0400 Subject: [PATCH] Allow everyone ping dot command --- dot-commands/ping.js | 2 +- modules/functions.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dot-commands/ping.js b/dot-commands/ping.js index cefb190..669e40b 100644 --- a/dot-commands/ping.js +++ b/dot-commands/ping.js @@ -4,7 +4,7 @@ module.exports = { name: "ping", description: "pong", usage: "ping pong", - permission: "devTeam", + permission: "everyone", async execute(message, commandData) { if (fn.dotCommands.checkPermissions(this.permission, message.author.id)) { try { diff --git a/modules/functions.js b/modules/functions.js index a089835..2a4fe86 100755 --- a/modules/functions.js +++ b/modules/functions.js @@ -286,6 +286,8 @@ const functions = { return matchFound; } else if (type === "owner") { return config.ownerId === userId; + } else if (type === "everyone") { + return true; } }