Random changes

This commit is contained in:
Histmy 2021-02-06 23:40:06 +01:00
parent aea0f3e6be
commit 0e2268177a

View File

@ -31,13 +31,9 @@ module.exports = (mes, komand, celArgs, client) => {
case 'fight': case 'fight':
case 'figh': case 'figh':
case 'fajt': case 'fajt':
if (!celArgs) {
mes.channel.send('koho?');
break;
}
const ping = /^<@!?\d+>$/; const ping = /^<@!?\d+>$/;
if (!ping.test(celArgs)) { if (!ping.test(celArgs)) {
mes.channel.send('tak seš kokot?'); mes.channel.send('tak si kokot ti kokote');
break; break;
} }
const vyherce = Math.round(Math.random()) ? mes.author : celArgs; const vyherce = Math.round(Math.random()) ? mes.author : celArgs;