diff --git a/src/modules/bot.js b/src/modules/bot.js index 820915b..48317a8 100644 --- a/src/modules/bot.js +++ b/src/modules/bot.js @@ -183,6 +183,7 @@ settings.callback = async function (msg, line, [cmd, key, value]) { !hf.config.elevated.includes(msg.author.id) ) return "You do not have `Manage Server` permissions"; + if (msg.author.bot) return "Zero-width space your say command."; if (!guildSettings.flags[key]) return "Unknown key."; @@ -198,6 +199,7 @@ settings.callback = async function (msg, line, [cmd, key, value]) { !hf.config.elevated.includes(msg.author.id) ) return "You do not have `Manage Server` permissions"; + if (msg.author.bot) return "Zero-width space your say command."; if (!guildSettings.flags[key]) return "Unknown key."; diff --git a/src/modules/moderation.js b/src/modules/moderation.js index 478f7c6..1bc3144 100644 --- a/src/modules/moderation.js +++ b/src/modules/moderation.js @@ -26,6 +26,7 @@ tidy.callback = async function (msg, line, [subcommand, count, extra]) { ) { return "I do not have `Manage Messages` permission."; } + if (msg.author.bot) return "Zero-width space your say command."; switch (subcommand) { case "all": { diff --git a/src/modules/roleme.js b/src/modules/roleme.js index fd0dae3..7b6648b 100644 --- a/src/modules/roleme.js +++ b/src/modules/roleme.js @@ -103,6 +103,7 @@ roleme.callback = async function (msg, line, args) { if (!msg.channel.permissionsOf(hf.bot.user.id).has("manageRoles")) { return "I do not have `Manage Roles` permission."; } + if (msg.author.bot) return "Zero-width space your say command."; const role = await lookupRole(msg, argStr); if (role === "No results") return role; @@ -124,6 +125,7 @@ roleme.callback = async function (msg, line, args) { if (!msg.channel.permissionsOf(hf.bot.user.id).has("manageRoles")) { return "I do not have `Manage Roles` permission."; } + if (msg.author.bot) return "Zero-width space your say command."; const roles = await getRoles(msg.guildID); @@ -163,6 +165,7 @@ roleme.callback = async function (msg, line, args) { if (!msg.channel.permissionsOf(hf.bot.user.id).has("manageRoles")) { return "I do not have `Manage Roles` permission."; } + if (msg.author.bot) return "Zero-width space your say command."; const roles = await getRoles(msg.guildID); @@ -184,6 +187,7 @@ roleme.callback = async function (msg, line, args) { if (!msg.channel.permissionsOf(hf.bot.user.id).has("manageRoles")) { return "I do not have `Manage Roles` permission."; } + if (msg.author.bot) return "Zero-width space your say command."; const roles = await getRoles(msg.guildID); @@ -217,6 +221,7 @@ roleme.callback = async function (msg, line, args) { if (!msg.channel.permissionsOf(hf.bot.user.id).has("manageRoles")) { return "I do not have `Manage Roles` permission."; } + if (msg.author.bot) return "Zero-width space your say command."; const roles = await getRoles(msg.guildID);