Skip to content

Commit

Permalink
I love NREs
Browse files Browse the repository at this point in the history
  • Loading branch information
FloatingMilkshake committed Sep 11, 2024
1 parent 79553b5 commit 0d9f7bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Events/MessageEvents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ public static Task MessageCreated(DiscordClient client, MessageCreateEventArgs e
{
Task.Run(async () =>
{
if (Program.ConfigJson.Base.UseServerSpecificFeatures) await ServerSpecificFeatures.Checks.MessageCreateChecks(e);
try
{
if (Program.ConfigJson.Base.UseServerSpecificFeatures) await ServerSpecificFeatures.Checks.MessageCreateChecks(e);
await KeywordTrackingHelpers.KeywordCheck(e.Message);
if (!e.Channel.IsPrivate)
Expand Down
2 changes: 2 additions & 0 deletions ServerSpecificFeatures.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ public partial class Checks
{
public static async Task MessageCreateChecks(MessageCreateEventArgs e)
{
if (e.Channel.IsPrivate) return;

if (e.Guild.Id == 799644062973427743)
{
// &caption -> #captions
Expand Down

0 comments on commit 0d9f7bd

Please sign in to comment.