Skip to content

Commit

Permalink
Debug command
Browse files Browse the repository at this point in the history
  • Loading branch information
hhvrc committed Sep 16, 2024
1 parent 7130fd9 commit 9799cea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions DiscordBot/MessageHandler/MessageHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ public async Task HandleMessageAsync(SocketMessage message)

bool isInBotChannel = message.Channel.Id == 1114123393567047730;

if (isInBotChannel && message.Content.StartsWith("debug")) {
await message.Channel.SendMessageAsync($"Message received: ``{message.Content}``");
}

// Check if message starts with the lightning bolt emoji and mentions a user
if (message.Content.StartsWith(":zap:") && message.MentionedUsers.Count > 0)
{
Expand Down

0 comments on commit 9799cea

Please sign in to comment.