fixing super critical bug, now you can write stuff after hui
This commit is contained in:
parent
f52893e696
commit
ae9ade51d5
1 changed files with 2 additions and 2 deletions
|
@ -81,12 +81,12 @@ namespace Geekbot.net
|
||||||
var message = messageParam as SocketUserMessage;
|
var message = messageParam as SocketUserMessage;
|
||||||
if (message == null) return;
|
if (message == null) return;
|
||||||
int argPos = 0;
|
int argPos = 0;
|
||||||
if (message.ToString().ToLower().Equals("ping"))
|
if (message.ToString().ToLower().StartsWith("ping"))
|
||||||
{
|
{
|
||||||
await message.Channel.SendMessageAsync("pong");
|
await message.Channel.SendMessageAsync("pong");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (message.ToString().ToLower().Equals("hui"))
|
if (message.ToString().ToLower().StartsWith("hui"))
|
||||||
{
|
{
|
||||||
await message.Channel.SendMessageAsync("hui!!!");
|
await message.Channel.SendMessageAsync("hui!!!");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue