Skip to content

Commit

Permalink
Add alternative discord invite sites
Browse files Browse the repository at this point in the history
  • Loading branch information
Erisa committed Jun 18, 2021
1 parent b182cf2 commit f07adb8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Modules/MessageEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,11 @@ public static async Task MessageHandlerAsync(DiscordClient client, DiscordMessag
checkedMessage = checkedMessage.Replace("discord.gg/" + exclusion, "").Replace("discord.com/invite/" + exclusion, "");
}

if (checkedMessage.Contains("discord.gg/") || checkedMessage.Contains("discord.com/invite/"))
if (checkedMessage.Contains("discord.gg/") ||
checkedMessage.Contains("discord.com/invite/") ||
checkedMessage.Contains("dsc.gg/") ||
checkedMessage.Contains("invite.gg/")
)
{
string reason = "Sent an unapproved invite";
_ = message.DeleteAsync();
Expand Down

0 comments on commit f07adb8

Please sign in to comment.