fixing super critical bug, now you can write stuff after hui

This commit is contained in:
dboerlage 2017-04-18 14:49:26 +02:00
parent f52893e696
commit ae9ade51d5
No known key found for this signature in database
GPG key ID: BDA07B7D3FCF147F

View file

@ -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;