From c3163754106d95331ae9a086bdd2e20a4c756b22 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sun, 28 Feb 2021 00:41:01 -0600 Subject: [PATCH] Revert "Change "startsWith" to equals" This reverts commit e07c6852803d2ca4c0c1d83cf6fdaa29f4c7e8f2. --- bot/awesomescibo.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/awesomescibo.mjs b/bot/awesomescibo.mjs index 1654810..5da2e18 100755 --- a/bot/awesomescibo.mjs +++ b/bot/awesomescibo.mjs @@ -241,7 +241,7 @@ client.on('message', async message => { )*/); }); } - if (message.content.toLowerCase === "do be training") { + if (message.content.startsWith("do be training")) { if (message.content === "do be training") { var author = message.author; fetch("https://scibowldb.com/api/questions/random")