From 9aff8ebe2f5c77503277fa77cdd8c7d888ddfa4f Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Fri, 26 Feb 2021 12:35:13 -0600 Subject: [PATCH] Mention user in question Lessens confusion as to who got what question if multiple people use the same command --- bot/awesomescibo.mjs | 2 +- bot/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/awesomescibo.mjs b/bot/awesomescibo.mjs index 9ec832a..040888d 100755 --- a/bot/awesomescibo.mjs +++ b/bot/awesomescibo.mjs @@ -235,7 +235,7 @@ client.on('message', async message => { .then(response => response.json()) .then(data => { let filter = m => m.author.id === message.author.id; - message.channel.send(data.question.tossup_question).then(() => { + message.reply(data.question.tossup_question).then(() => { message.channel.awaitMessages(filter, { max: 1, time: 30000, diff --git a/bot/package.json b/bot/package.json index 57a17bd..34112bb 100644 --- a/bot/package.json +++ b/bot/package.json @@ -5,7 +5,7 @@ "node-fetch": "^2.6.1" }, "name": "awscibo", - "version": "0.0.7", + "version": "0.0.8", "main": "awesomescibo.mjs", "bin": { "awscibo": "./awesomescibo.mjs"