diff --git a/modules/spink.js b/modules/spink.js index 1fa1937..43eb91b 100644 --- a/modules/spink.js +++ b/modules/spink.js @@ -8,7 +8,7 @@ const contactSpinkServer = async (akce, id, nick, avatar) => { return await fetch(`https://spinkacek.ga/extapi.php?${options}`) .then(r => r.text()) .then(text => text === 'OK'); -} +}; const syncSpink = async () => { await fetch('https://spinkacek.ga/api/spinkacky') @@ -24,7 +24,7 @@ const syncSpink = async () => { spinkacky.push(keys[i].slice(8)); } }); -} +}; syncSpink(); @@ -34,6 +34,10 @@ module.exports = { case 'spinkáček': case 'spinkacek': + if (mes.author.bot) { + mes.channel.send("až někdy<:kapp:677916836418813953>"); + break; + } (async () => { if (await contactSpinkServer('spinkacek', mes.author.id, mes.author.username, mes.author.avatarURL())) mes.react('😴'); else mes.channel.send('nespis uz?????'); @@ -42,6 +46,10 @@ module.exports = { case 'vstáváček': case 'vstavacek': + if (mes.author.bot) { + mes.channel.send("<:sjeta:623216247953424426>"); + break; + } (async () => { if (await contactSpinkServer('vstavacek', mes.author.id)) mes.channel.send('dobre rano hajzle'); else mes.channel.send('uz jsi vzhuru ty hajzle'); @@ -57,7 +65,7 @@ module.exports = { on_voiceStateUpdate: (bef, aft) => { if (!aft.channel || bef.channel) return; if (spinkacky.includes(aft.id)) aft.kick() - .catch(() => {}); + .catch(() => { }); }, on_message: mes => { @@ -76,4 +84,4 @@ module.exports = { }); } } -} +};