Skip to content
This repository was archived by the owner on Nov 24, 2022. It is now read-only.

Commit 111dc25

Browse files
Merge pull request #61 from keksbg/master
[URGENT] [PERMISSIONS BYPASS PATCH] Ignore messages from bots
2 parents 44d4213 + f6679f2 commit 111dc25

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

TabletBot.Discord/Watchers/Commands/CommandMessageWatcher.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ IEnumerable<Type> commands
3636

3737
public async Task Receive(IMessage message)
3838
{
39-
if (message.Content.StartsWith(_settings.CommandPrefix))
39+
if (message.Content.StartsWith(_settings.CommandPrefix) && !message.Author.IsBot)
4040
{
4141
try
4242
{
@@ -92,4 +92,4 @@ private async Task CommandExecuted(Optional<CommandInfo> cmdInfo, ICommandContex
9292
}
9393
}
9494
}
95-
}
95+
}

0 commit comments

Comments
 (0)