fejk spink

This commit is contained in:
Histmy 2023-10-03 18:56:42 +02:00
parent 77812f7a43
commit 567fe18bac

View File

@ -55,11 +55,15 @@ const ifUzRemove = (m: Message) => {
return false;
};
const tovjemamvolepreceroliky = async (roliky: User) => {
const tovjemamvolepreceroliky = async (roliky: User, rictCas?: boolean) => {
const odpoved = await handleSpink("vstavacek", roliky);
if (!odpoved) return "uz jsi vzhuru ty hajzle";
const cas = Number(odpoved.slice(3));
const formatedCas = formatCas(cas);
const zacatek = `dobry rano hajzle ${roliky}`;
if (!rictCas) zacatek;
let zpr = "";
if (cas >= 57600) zpr = "mas dat more vstavacek uz kdyz vstanes retarde";
else if (cas >= 43200) zpr = "extrémní bídák";
@ -67,7 +71,7 @@ const tovjemamvolepreceroliky = async (roliky: User) => {
else if (cas < 30) zpr = "dobrej mikrospánek debile";
else if (cas < 10800) zpr = "dobrej fake spink debile";
return `dobry rano hajzle ${roliky}\nspal sy ${formatedCas}\n${zpr}`;
return `${zacatek}\nspal sy ${formatedCas}\n${zpr}`;
};
function hmsToCislo(reg: RegExpExecArray | null) {
@ -93,10 +97,10 @@ const exp: Modul = {
vstavacek: {
als: ["vstavcacek", "gm", "unspinkacek"],
run: async mes => {
run: async (mes, arg) => {
if (mes.author.bot) return emouty.sjeta;
return tovjemamvolepreceroliky(mes.author);
return tovjemamvolepreceroliky(mes.author, arg.toLowerCase() == "fejk");
}
},
@ -249,6 +253,7 @@ const exp: Modul = {
return false;
},
// autoSpink handeler
on_userPresenceUpdate: async (bef, aft) => {
if (!bef) return;
const befoff = bef.status == "offline";