diff options
| author | 8cy <[email protected]> | 2020-05-13 02:25:29 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-05-13 02:25:29 -0700 |
| commit | d0f7ec18c1b8284917b33c542d9e249ec958f213 (patch) | |
| tree | 65f36a62067be59c0b24efda732b307b8291aef5 /src/commands/fun | |
| parent | update formatting for support and joinmsg (diff) | |
| download | dep-core-d0f7ec18c1b8284917b33c542d9e249ec958f213.tar.xz dep-core-d0f7ec18c1b8284917b33c542d9e249ec958f213.zip | |
fix nsfw cmds, add rockpaperscissors
Diffstat (limited to 'src/commands/fun')
| -rw-r--r-- | src/commands/fun/rockpaperscissors.ts | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/src/commands/fun/rockpaperscissors.ts b/src/commands/fun/rockpaperscissors.ts new file mode 100644 index 0000000..422481f --- /dev/null +++ b/src/commands/fun/rockpaperscissors.ts @@ -0,0 +1,80 @@ +import { Command, CommandoMessage } from 'discord.js-commando'; +import { MessageEmbed } from 'discord.js'; + +module.exports = class RockPaperScissorsFun extends Command { + constructor(client) { + super(client, { + name: 'rockpaperscissors', + aliases: ['rps'], + group: 'fun', + memberName: 'rockpaperscissors', + description: '**[Disabled]** Play Rock, Paper Scissors.', + throttling: { + usages: 5, + duration: 30 + }, + examples: ['uwu!rockpaperscissors', 'uwu!rps'], + userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] + }); + } + async run(msg: CommandoMessage) { + // TODO: fix this + msg.reply('Command disabled.') + + // const rock = '๐' + // const paper = '๐งป' + // const scissors = 'โ๏ธ' + + // let embed = new MessageEmbed() + // .setAuthor(msg.author.tag, msg.author.displayAvatarURL()) + // .setDescription('What would you like to choose?') + // .setColor(0xFFCC4D) + // .setTimestamp() + + // const m = await msg.channel.send(embed) + + // const react1 = await m.react(rock) + // const react2 = await m.react(paper) + // const react3 = await m.react(scissors) + + // const chooseArr = [rock, paper, scissors] + + // const randChoice = await chooseArr[Math.floor(Math.random() * chooseArr.length)] + + // let collector = await m.createReactionCollector((reacted, user) => user.id === msg.author.id) + + // collector.on('collect', async (reaction, user) => { + // let winEmb = new MessageEmbed() + // .setAuthor(msg.author.tag, msg.author.displayAvatarURL()) + // .setDescription('You won!') + // .addField('Results:', `${reaction.emoji} vs ${randChoice}`) + // .setColor('GREEN') + // .setTimestamp() + + // let tieEmb = new MessageEmbed() + // .setAuthor(msg.author.tag, msg.author.displayAvatarURL()) + // .setDescription('You tied!') + // .addField('Results:', `${reaction.emoji} vs ${randChoice}`) + // .setColor(0xFFCC4D) + // .setTimestamp() + + // let lostEmb = new MessageEmbed() + // .setAuthor(msg.author.tag, msg.author.displayAvatarURL()) + // .setDescription('You lost!') + // .addField('Results:', `${reaction.emoji} vs ${randChoice}`) + // .setColor('RED') + // .setTimestamp() + // if ((reaction.emoji === rock && randChoice === scissors) || (reaction.emoji === paper && randChoice === rock) || (reaction.emoji === scissors && randChoice === paper)) { + // m.delete() + // msg.channel.send(winEmb) + // } else if (reaction.emoji === randChoice) { + // m.delete() + // msg.channel.send(tieEmb) + // } else { + // m.delete() + // msg.channel.send(lostEmb) + // } + // }) + } +};
\ No newline at end of file |