From 8dec9ade3ef87e465fabe0df4171c32e6b28672d Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Tue, 16 Mar 2021 18:53:48 -0500 Subject: [PATCH] Attempt to fix bad subject crash --- bot/awesomescibo.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot/awesomescibo.mjs b/bot/awesomescibo.mjs index 771f78e..60da7e0 100755 --- a/bot/awesomescibo.mjs +++ b/bot/awesomescibo.mjs @@ -182,7 +182,8 @@ client.on('message', async message => { subjectURL = `https://moose.lcsrc.org/subjects/energy.json`; break; default: - subjectURL = `https://scibowldb.com/api/questions/random`; + message.channel.send("Not a valid subject!"); + return; break; } const author = message.author;