cleanup old code

This commit is contained in:
2021-04-18 15:55:39 +02:00
parent ff7f1b12a2
commit 2f69625fc3

View File

@ -1,5 +1,4 @@
const globals = require('../globals'); const globals = require('../globals');
//const Random = require('random');
const { roll } = require('@dsabot/Roll'); const { roll } = require('@dsabot/Roll');
const { findMessage }= require('@dsabot/findMessage'); const { findMessage }= require('@dsabot/findMessage');
@ -11,9 +10,7 @@ module.exports = {
needs_args: false, needs_args: false,
async exec(message, args) { async exec(message, args) {
//Random.use(message.author.tag); const coin = roll(1,2,message.author.tag).dice;
const coin = roll(1,2,message.author.tag).dice; //Random.int(0, 1);
// message.reply('Die Münze bleibt auf **' + globals.Coin[coin] + '** liegen.');
message.reply(`${findMessage('HEADS_OR_TAILS')} **${globals.Coin[(coin-1)]}**.`); message.reply(`${findMessage('HEADS_OR_TAILS')} **${globals.Coin[(coin-1)]}**.`);
}, },
}; };