bot now ignores its own messages

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

View file

@ -80,6 +80,7 @@ namespace Geekbot.net
{
var message = messageParam as SocketUserMessage;
if (message == null) return;
if (message.Author.Username.Equals(client.CurrentUser.Username)) return;
int argPos = 0;
if (message.ToString().ToLower().StartsWith("ping"))
{