This commit is contained in:
Emily 2020-10-22 18:50:28 +11:00
parent 25f6f624a6
commit 982ff03dda

View file

@ -1,3 +1,4 @@
const { MessageCollector } = require('eris-collector');
const { inspect, promisify } = require('util');
class Helpers {
@ -23,9 +24,9 @@ class Helpers {
return messages.last().content;
}
async awaitReply (message, question, limit = 60000) {
async awaitReply (message, input, limit = 60000) {
const filter = (m) => m.author.id === message.author.id;
await message.channel.createMessage(question);
await message.channel.createMessage(input);
try {
const collected = await message.channel.awaitMessages(filter, {