Skip to content

Commit

Permalink
Region
Browse files Browse the repository at this point in the history
  • Loading branch information
smallketchup82 committed Sep 27, 2024
1 parent 452cf1f commit 9cb620e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ketchupbot-discord/GalaxyGPT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public static async Task HandleMessage(SocketMessage messageParam, DiscordSocket

if (allowedChannels != null && !allowedChannels.Contains(message.Channel.Id)) return;

#region Conversation

if (!string.IsNullOrWhiteSpace(message.Content) && message.Type == MessageType.Reply &&
message.ReferencedMessage.Author.Id == client.CurrentUser.Id &&
message.ReferencedMessage.ReferencedMessage.Author.Id == message.Author.Id)
Expand All @@ -42,6 +44,8 @@ public static async Task HandleMessage(SocketMessage messageParam, DiscordSocket
return;
}

#endregion

if (message.Content.Trim() == client.CurrentUser.Mention)
{
await message.ReplyAsync("""
Expand Down

0 comments on commit 9cb620e

Please sign in to comment.