From 49fa0cdfb99e8923e1b60fe03b4bec6d5c4801a9 Mon Sep 17 00:00:00 2001 From: Adrien Nunes <adrien.nunes@ensiie.fr> Date: Thu, 6 Jan 2022 02:39:29 +0100 Subject: [PATCH] Fix regexp --- commands/CommandInfoCovid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/CommandInfoCovid.js b/commands/CommandInfoCovid.js index 277ba7d..ca5850d 100644 --- a/commands/CommandInfoCovid.js +++ b/commands/CommandInfoCovid.js @@ -91,7 +91,7 @@ class CommandInfoCovid{ } shouldRespond(message){ - return message.content.test(this.quiRegExp); + return this.quiRegExp.test(message.content); } } -- GitLab