summaryrefslogtreecommitdiff
path: root/src/commands/fun/russianroulette.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/fun/russianroulette.ts')
-rw-r--r--src/commands/fun/russianroulette.ts29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/commands/fun/russianroulette.ts b/src/commands/fun/russianroulette.ts
new file mode 100644
index 0000000..ba67118
--- /dev/null
+++ b/src/commands/fun/russianroulette.ts
@@ -0,0 +1,29 @@
+import { Command, CommandoMessage } from 'discord.js-commando';
+import { MessageEmbed } from 'discord.js';
+
+module.exports = class RussianRouletteFun extends Command {
+ constructor(client) {
+ super(client, {
+ name: 'russianroulette',
+ aliases: ['rr'],
+ group: 'fun',
+ memberName: 'russianroulette',
+ description: 'Play a game of Russian Roulette.',
+ throttling: {
+ usages: 5,
+ duration: 30
+ },
+ examples: ['uwu!russianroulette', 'uwu!rr'],
+ userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
+ clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY']
+ });
+ }
+ run(msg: CommandoMessage) {
+ var s = Math.floor(Math.random() * 6)
+ if (s === 0) {
+ return msg.reply('💥 *Bang.* You lose.')
+ } else {
+ return msg.reply("🔫 *Click.* You survived.");
+ }
+ }
+}; \ No newline at end of file