diff options
| author | 2024-07-26 11:44:58 +0300 | |
|---|---|---|
| committer | 2024-07-26 11:44:58 +0300 | |
| commit | 8b560559208115bce95e6cebde46a33be697e3f3 (patch) | |
| tree | 8f42dd4dba6ec3e5e3b07659b72c9e38dbfe4459 /src/main.zig | |
| parent | Don't care about receive time (diff) | |
| download | ukkobot-8b560559208115bce95e6cebde46a33be697e3f3.tar.gz ukkobot-8b560559208115bce95e6cebde46a33be697e3f3.tar.xz ukkobot-8b560559208115bce95e6cebde46a33be697e3f3.zip | |
Add forgor & huh triggers
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig index 3c75f25..2761f56 100644 --- a/src/main.zig +++ b/src/main.zig | |||
| @@ -202,6 +202,24 @@ fn onTextMessage(bot: *Bot, msg: types.Message, text: []const u8) !void { | |||
| 202 | .chat_id = msg.chat.id, | 202 | .chat_id = msg.chat.id, |
| 203 | }, | 203 | }, |
| 204 | }); | 204 | }); |
| 205 | } else if (std.mem.eql(u8, text, "forgor")) { | ||
| 206 | try bot.sendMessage_(.{ | ||
| 207 | .chat_id = msg.chat.id, | ||
| 208 | .text = "💀", | ||
| 209 | .reply_parameters = .{ | ||
| 210 | .message_id = msg.message_id, | ||
| 211 | .chat_id = msg.chat.id, | ||
| 212 | }, | ||
| 213 | }); | ||
| 214 | } else if (std.mem.eql(u8, text, "huh")) { | ||
| 215 | try bot.sendMessage_(.{ | ||
| 216 | .chat_id = msg.chat.id, | ||
| 217 | .text = "idgi", | ||
| 218 | .reply_parameters = .{ | ||
| 219 | .message_id = msg.message_id, | ||
| 220 | .chat_id = msg.chat.id, | ||
| 221 | }, | ||
| 222 | }); | ||
| 205 | } else if (std.mem.eql(u8, text, "H")) { | 223 | } else if (std.mem.eql(u8, text, "H")) { |
| 206 | try bot.sendMessage_(.{ | 224 | try bot.sendMessage_(.{ |
| 207 | .chat_id = msg.chat.id, | 225 | .chat_id = msg.chat.id, |