radiobot/modules/poll.js

30 lines
454 B
JavaScript
Raw Normal View History

2022-03-22 20:25:39 -04:00
const discord = require("discord.js");
const RedditRadio = require("../RedditRadio");
class PollModule
{
constructor(config, client, bot)
{
this.config = config;
/** @type {discord.Client} */
this.client = client;
/** @type {RedditRadio} */
this.bot = bot;
}
/**
* @param {discord.Message} msg
*/
onCmdPoll(msg)
{
(async () => {
await msg.react("👍");
await msg.react("👎");
})();
}
}
module.exports = PollModule;