From 2f69625fc302507fd23a9595c511339772900c97 Mon Sep 17 00:00:00 2001 From: TobenderZephyr Date: Sun, 18 Apr 2021 15:55:39 +0200 Subject: [PATCH] cleanup old code --- commands/HeadsOrTails.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/commands/HeadsOrTails.js b/commands/HeadsOrTails.js index 898792e..71e8729 100644 --- a/commands/HeadsOrTails.js +++ b/commands/HeadsOrTails.js @@ -1,5 +1,4 @@ const globals = require('../globals'); -//const Random = require('random'); const { roll } = require('@dsabot/Roll'); const { findMessage }= require('@dsabot/findMessage'); @@ -11,9 +10,7 @@ module.exports = { needs_args: false, async exec(message, args) { - //Random.use(message.author.tag); - const coin = roll(1,2,message.author.tag).dice; //Random.int(0, 1); -// message.reply('Die Münze bleibt auf **' + globals.Coin[coin] + '** liegen.'); + const coin = roll(1,2,message.author.tag).dice; message.reply(`${findMessage('HEADS_OR_TAILS')} **${globals.Coin[(coin-1)]}**.`); }, }; \ No newline at end of file