Skip to content

Commit

Permalink
Update server-specific features
Browse files Browse the repository at this point in the history
  • Loading branch information
FloatingMilkshake committed Dec 18, 2024
1 parent 91a6d76 commit 3ae2647
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ServerSpecificFeatures.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,17 @@ public static async Task MessageCreateChecks(MessageCreatedEventArgs e)

if (e.Guild.Id == 1203128266559328286 || e.Guild.Id == Program.HomeServer.Id)
{
if (e.Message.Author is not null && e.Message.Author.Id == 1264728368847523850 && e.Message.Content == "https://cdn.kioydio.com/ric-funi.jpg")
{
var reply = e.Message.ReferencedMessage;
if (reply is not null)
{
var ricRegex = new Regex("\\brice?\\b");
if (!ricRegex.IsMatch(reply.Content))
await e.Message.DeleteAsync();
}
}

if (e.Message.Content == "shutok" && e.Message.Author.Id == 455432936339144705)
{
await e.Message.RespondAsync("ok");
Expand Down

0 comments on commit 3ae2647

Please sign in to comment.