我有一个问题,我的discord.js机器人,我有一个轮询命令,但我希望它看到多少反应后,它有一定的时间用户要求,然后说(有更多的人喜欢X比喜欢Y的人更喜欢)。Discord.js结果轮询命令,需要一些工作
discord.js:
const Discord = require('discord.js')
exports.run = async (bot, message, args) => {
if (!args) return message.reply("You must have something to vote for!")
if (!message.content.includes("?")) return message.reply("Include a ? in your vote!")
message.channel.send(`:ballot_box: ${message.author.username} started a vote! React to my next message to vote on it. :ballot_box: `);
const pollTopic = await message.channel.send(`${args}`);
pollTopic.react(`✅`);
pollTopic.react(`⛔`);
};
你遇到什么问题?什么没有用?请帮助我们帮助你:) –
对不起,xD,我没有任何具体的答案,即时通讯只是基本上问了一个问题:“你怎么知道有多少反应比⛔有多少,反之亦然 – ThatMajesticGuy