Ignore all messages by the bot

This commit is contained in:
Deukhoofd 2018-03-29 19:38:56 +02:00
parent 65794edf2c
commit fea2b05e03
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,10 @@ namespace DeukBot4.MessageHandlers
{ {
public static async Task HandleMessage(SocketMessage message) public static async Task HandleMessage(SocketMessage message)
{ {
if (message.Author.Id == Program.Client.CurrentUser.Id)
{
return;
}
try try
{ {
await CommandHandler.CommandHandler.HandleMessage(message); await CommandHandler.CommandHandler.HandleMessage(message);