From 8d660659ac66c6ca59e47390e0b3d15a3de32681 Mon Sep 17 00:00:00 2001 From: Marcus Netz Date: Tue, 24 Nov 2020 18:44:09 +0100 Subject: [PATCH] added Heads or Tails --- src/commands/HeadsOrTails.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/commands/HeadsOrTails.js diff --git a/src/commands/HeadsOrTails.js b/src/commands/HeadsOrTails.js new file mode 100644 index 0000000..78da1db --- /dev/null +++ b/src/commands/HeadsOrTails.js @@ -0,0 +1,5 @@ +const globals = require('../globals') +module.exports = async (message, args, db) => { + let coin = Math.floor(Math.random()*2) + message.reply('Folgende Seite hat der Münzwurf ergeben: ' + globals.Coin[coin] + '.') +}; \ No newline at end of file