remove reactions from messages older than n days
This commit is contained in:
parent
a8d6a2b8d7
commit
94b12a1069
9 changed files with 86 additions and 18 deletions
|
@ -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?;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue