Skip to content

Commit

Permalink
vole
Browse files Browse the repository at this point in the history
  • Loading branch information
mvolfik authored and ProkopRandacek committed May 8, 2024
1 parent 8b908d1 commit 3c4ebca
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
| @kubik:0d9e.tech |
| Marek: <a href="https://mrms.cz">mrms.cz</a> (most sus looking) |
| @mrms:0d9e.tech |
| Marian: <a href="https://mariansam.eu">mariansam.eu</a> |
| Marian: <a href="https://mariansam.eu">mariansam.eu</a> (don't tell him) |
| @marian:0d9e.tech |
| Matej: <a href="https://matej.0d9e.tech">matej.0d9e.tech</a> (managememter) |
| @matej:0d9e.tech |
Expand Down
21 changes: 21 additions & 0 deletions tgbot.deno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,27 @@ 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 3c4ebca

Please sign in to comment.