Added more spinkacek & more vstavacek
This commit is contained in:
parent
13a3bcfc62
commit
59a6629646
@ -1,3 +1,6 @@
|
||||
let nastavit = !0;
|
||||
const spinkacky = [];
|
||||
|
||||
module.exports = (mes, komand, celArgs) => {
|
||||
switch (komand) {
|
||||
|
||||
@ -66,6 +69,46 @@ module.exports = (mes, komand, celArgs) => {
|
||||
mes.channel.send({ embed });
|
||||
break;
|
||||
|
||||
case 'spinkáček':
|
||||
case 'spinkacek':
|
||||
if (mes.author.bot) {
|
||||
mes.channel.send('<:delassibazny:643059863059955723>');
|
||||
break;
|
||||
}
|
||||
if (spinkacky.includes(mes.author.id)) {
|
||||
mes.channel.send('nespis uz?????');
|
||||
break;
|
||||
}
|
||||
const datum = new Date();
|
||||
const hodiny = datum.getHours();
|
||||
if ((hodiny < 2 && datum.getMinutes() < 30) || (hodiny > 8)) {
|
||||
mes.channel.send('ickon neni cas na spink');
|
||||
break;
|
||||
}
|
||||
|
||||
if (nastavit) {
|
||||
mes.client.on('voiceStateUpdate', (bef, aft) => {
|
||||
if (!aft.channel || bef.channel) return;
|
||||
if (spinkacky.includes(aft.id)) aft.kick();
|
||||
});
|
||||
nastavit = !1;
|
||||
};
|
||||
|
||||
if (mes.member.voice.channel) mes.member.voice.kick('spinkacek');
|
||||
spinkacky.push(mes.author.id);
|
||||
mes.react('😴');
|
||||
break;
|
||||
|
||||
case 'vstáváček':
|
||||
case 'vstavacek':
|
||||
if (!spinkacky.includes(mes.author.id)) {
|
||||
mes.channel.send('uz jsi vzhuru ty hajzle');
|
||||
break;
|
||||
}
|
||||
spinkacky.splice(spinkacky.indexOf(mes.author.id), 1);
|
||||
mes.channel.send('dobre rano hajzle');
|
||||
break;
|
||||
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user