From d844ac84554e80d33ea15c84c1af09995e68ce5d Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Sat, 14 Oct 2023 23:00:15 +0530 Subject: [PATCH] Make dice command case-insensitive --- commands/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/index.js b/commands/index.js index 4c5ba40..e9536be 100644 --- a/commands/index.js +++ b/commands/index.js @@ -70,7 +70,7 @@ module.exports = (bot, [ questions, kys, insults, commands_list, words, roleplay bot.command("donate", (ctx) => ctx.reply("Thanks for considering to donate." + " To support the development and hosting of Quadnite Bot, you can " + "donate here: https://liberapay.com/ceda_ei/")); - bot.hears(/(\d*)d(\d+)(\s*([-+])\s*(\d+))?/, dice()); + bot.hears(/(\d*)d(\d+)(\s*([-+])\s*(\d+))?/i, dice()); function getGetGif(command) {