summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Uko Kokņevičs2024-07-26 11:49:52 +0300
committerGravatar Uko Kokņevičs2024-07-26 11:49:52 +0300
commite9a3fcb60faa146872ee147257285ec37f02a6a5 (patch)
tree8e06a7c3b8779ab6e172125ce00cef9a21dc6064 /src
parentAdd forgor & huh triggers (diff)
downloadukkobot-e9a3fcb60faa146872ee147257285ec37f02a6a5.tar.gz
ukkobot-e9a3fcb60faa146872ee147257285ec37f02a6a5.tar.xz
ukkobot-e9a3fcb60faa146872ee147257285ec37f02a6a5.zip
make forgor and huh ignore case
Diffstat (limited to 'src')
-rw-r--r--src/main.zig4
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",