summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Uko Kokņevičs2025-07-30 01:48:32 +0300
committerGravatar Uko Kokņevičs2025-07-30 01:48:32 +0300
commit69f81a79c90ae25f307ed0b96ba0d74f0de17204 (patch)
treeb307bd96546cf577c8ef8e20e81b1b12179efed9
parentAdd disallowed bots that don't notify devgroup (diff)
downloadukkobot-69f81a79c90ae25f307ed0b96ba0d74f0de17204.tar.gz
ukkobot-69f81a79c90ae25f307ed0b96ba0d74f0de17204.tar.xz
ukkobot-69f81a79c90ae25f307ed0b96ba0d74f0de17204.zip
Add Italian swearing
-rw-r--r--src/main.zig18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig
index a29774b..f1eee79 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -319,6 +319,15 @@ fn onTextMessage(bot: *Bot, msg: types.Message, text: []const u8) !void {
319 }, 319 },
320 }); 320 });
321 } 321 }
322 } else if (std.ascii.eqlIgnoreCase(text, "dio cane")) {
323 try bot.sendMessage_(.{
324 .chat_id = msg.chat.id,
325 .text = "porco dio",
326 .reply_parameters = .{
327 .message_id = msg.message_id,
328 .chat_id = msg.chat.id,
329 },
330 });
322 } else if (std.ascii.eqlIgnoreCase(text, "forgor")) { 331 } else if (std.ascii.eqlIgnoreCase(text, "forgor")) {
323 try bot.sendMessage_(.{ 332 try bot.sendMessage_(.{
324 .chat_id = msg.chat.id, 333 .chat_id = msg.chat.id,
@@ -347,6 +356,15 @@ fn onTextMessage(bot: *Bot, msg: types.Message, text: []const u8) !void {
347 .chat_id = msg.chat.id, 356 .chat_id = msg.chat.id,
348 }, 357 },
349 }); 358 });
359 } else if (std.ascii.eqlIgnoreCase(text, "porco dio")) {
360 try bot.sendMessage_(.{
361 .chat_id = msg.chat.id,
362 .text = "dio cane",
363 .reply_parameters = .{
364 .message_id = msg.message_id,
365 .chat_id = msg.chat.id,
366 },
367 });
350 } else if (std.ascii.startsWithIgnoreCase(text, "say ")) { 368 } else if (std.ascii.startsWithIgnoreCase(text, "say ")) {
351 const the_text = text[4..]; 369 const the_text = text[4..];
352 if (!try utils.isTgWhitespaceStr(the_text)) { 370 if (!try utils.isTgWhitespaceStr(the_text)) {