Browse Source

Add source to question

pull/10/head
Abheek Dhawan 4 years ago
parent
commit
8e3b5046d4
  1. 2
      bot/awesomescibo.js

2
bot/awesomescibo.js

@ -209,7 +209,7 @@ function training(subject, interaction) {
.then((res) => { .then((res) => {
data = res.data.question; data = res.data.question;
const messageFilter = (m) => m.author.id === authorId; const messageFilter = (m) => m.author.id === authorId;
interaction.reply(data.tossup_question).then(() => { interaction.reply(data.tossup_question + `\n\n||Source: ${data.uri}||`).then(() => {
interaction.channel.awaitMessages(messageFilter, { interaction.channel.awaitMessages(messageFilter, {
max: 1, max: 1,
time: 120000, time: 120000,

Loading…
Cancel
Save