我有一個問題,我的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