Merge branch 'master' of github.com:pizzaandcoffee/Geekbot.net

This commit is contained in:
Runebaas 2017-10-12 16:34:45 +02:00
commit 9632c5c1b4
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6

View file

@ -40,7 +40,7 @@ namespace Geekbot.net
if (message.Author.IsBot) return Task.CompletedTask;
var argPos = 0;
var lowCaseMsg = message.ToString().ToLower();
if (lowCaseMsg.StartsWith("ping"))
if (lowCaseMsg.Equals("ping") || lowCaseMsg.StartsWith("ping "))
{
message.Channel.SendMessageAsync("pong");
return Task.CompletedTask;