Skip to content

Commit

Permalink
fix commands
Browse files Browse the repository at this point in the history
  • Loading branch information
hhvrc committed Sep 16, 2024
1 parent 9799cea commit b8bd02a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DiscordBot/MessageHandler/MessageHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ 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}``");
if (isInBotChannel && message.Content.StartsWith("debug ")) {
await message.Channel.SendMessageAsync($"Message received: ``{message.Content[6..]}``");
}

// Check if message starts with the lightning bolt emoji and mentions a user
if (message.Content.StartsWith(":zap:") && message.MentionedUsers.Count > 0)
if (message.Content.StartsWith('⚡') && message.MentionedUsers.Count > 0)
{
// Checkmark the message
await message.AddReactionAsync(new Emoji(""));
Expand Down

0 comments on commit b8bd02a

Please sign in to comment.