Skip to content

Commit

Permalink
delet a thing
Browse files Browse the repository at this point in the history
  • Loading branch information
mvolfik committed May 16, 2024
1 parent 8440775 commit d0a4161
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions tgbot.deno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,27 +241,6 @@ async function processTgUpdate(data: any) {
});
}

if (data.message.from.id === 929963796) {
const counts = new Map([..."regiojet"].map((x) => [x, 0]));
for (const c of text.toLowerCase()) {
if (counts.has(c)) counts.set(c, counts.get(c)! + 1);
}
counts.set("e", Math.floor(counts.get("e")! / 2));
const min = Math.min(...counts.values());
for (let i = 0; i < min; i++) {
await fetch(`https://api.telegram.org/bot${token}/sendMessage`, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
chat_id: MAIN_CHAT_ID,
text: "prokope trolly nemaji byt destructive",
}),
});
}
}

if (
text.toLowerCase().includes("gnu") &&
text.toLowerCase().includes("linux")
Expand Down

0 comments on commit d0a4161

Please sign in to comment.