remove reactions from messages older than n days

This commit is contained in:
seth 2024-04-02 19:23:15 -04:00
parent a8d6a2b8d7
commit 94b12a1069
No known key found for this signature in database
GPG key ID: D31BD0D494BBEE86
9 changed files with 86 additions and 18 deletions

View file

@ -5,6 +5,7 @@ use poise::serenity_prelude::{ActivityData, Context, FullEvent, OnlineStatus};
use poise::FrameworkContext;
mod analyze_logs;
mod block_reaction;
mod delete_on_reaction;
mod eta;
mod expand_link;
@ -71,6 +72,8 @@ pub async fn handle(
add_reaction.message_id.to_string(),
add_reaction.user_id.unwrap_or_default().to_string()
);
block_reaction::handle(ctx, add_reaction, data).await?;
delete_on_reaction::handle(ctx, add_reaction).await?;
}