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