From ae9ade51d550663165e302d9a4036f970bdc8e30 Mon Sep 17 00:00:00 2001 From: dboerlage Date: Tue, 18 Apr 2017 14:49:26 +0200 Subject: [PATCH] fixing super critical bug, now you can write stuff after hui --- Geekbot.net/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Geekbot.net/Program.cs b/Geekbot.net/Program.cs index 4871f31..3f48121 100755 --- a/Geekbot.net/Program.cs +++ b/Geekbot.net/Program.cs @@ -81,12 +81,12 @@ namespace Geekbot.net var message = messageParam as SocketUserMessage; if (message == null) return; int argPos = 0; - if (message.ToString().ToLower().Equals("ping")) + if (message.ToString().ToLower().StartsWith("ping")) { await message.Channel.SendMessageAsync("pong"); return; } - if (message.ToString().ToLower().Equals("hui")) + if (message.ToString().ToLower().StartsWith("hui")) { await message.Channel.SendMessageAsync("hui!!!"); return;