Browse Source

Attempt to fix bad subject crash

pull/8/head
Abheek Dhawan 4 years ago
parent
commit
8dec9ade3e
  1. 3
      bot/awesomescibo.mjs

3
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;

Loading…
Cancel
Save