diff options
| author | 2024-07-26 11:49:52 +0300 | |
|---|---|---|
| committer | 2024-07-26 11:49:52 +0300 | |
| commit | e9a3fcb60faa146872ee147257285ec37f02a6a5 (patch) | |
| tree | 8e06a7c3b8779ab6e172125ce00cef9a21dc6064 /src/main.zig | |
| parent | Add forgor & huh triggers (diff) | |
| download | ukkobot-e9a3fcb60faa146872ee147257285ec37f02a6a5.tar.gz ukkobot-e9a3fcb60faa146872ee147257285ec37f02a6a5.tar.xz ukkobot-e9a3fcb60faa146872ee147257285ec37f02a6a5.zip | |
make forgor and huh ignore case
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.zig b/src/main.zig index 2761f56..4bd15fe 100644 --- a/src/main.zig +++ b/src/main.zig | |||
| @@ -202,7 +202,7 @@ 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")) { | 205 | } else if (std.ascii.eqlIgnoreCase(text, "forgor")) { |
| 206 | try bot.sendMessage_(.{ | 206 | try bot.sendMessage_(.{ |
| 207 | .chat_id = msg.chat.id, | 207 | .chat_id = msg.chat.id, |
| 208 | .text = "💀", | 208 | .text = "💀", |
| @@ -211,7 +211,7 @@ fn onTextMessage(bot: *Bot, msg: types.Message, text: []const u8) !void { | |||
| 211 | .chat_id = msg.chat.id, | 211 | .chat_id = msg.chat.id, |
| 212 | }, | 212 | }, |
| 213 | }); | 213 | }); |
| 214 | } else if (std.mem.eql(u8, text, "huh")) { | 214 | } else if (std.ascii.eqlIgnoreCase(text, "huh")) { |
| 215 | try bot.sendMessage_(.{ | 215 | try bot.sendMessage_(.{ |
| 216 | .chat_id = msg.chat.id, | 216 | .chat_id = msg.chat.id, |
| 217 | .text = "idgi", | 217 | .text = "idgi", |