Goodbye moderation

We'll probably keep zeppelin / move back to Lily -- however the reminders seem to currently be broken :/
This commit is contained in:
TheKodeToad 2024-01-08 17:17:21 +00:00 committed by seth
parent e0fea8d23e
commit f2979d4cde
No known key found for this signature in database
GPG key ID: D31BD0D494BBEE86
7 changed files with 1 additions and 559 deletions

View file

@ -9,7 +9,6 @@ mod analyze_logs;
mod delete_on_reaction;
mod eta;
mod expand_link;
mod message_logger;
pub mod pluralkit;
mod support_onboard;
@ -48,28 +47,11 @@ pub async fn handle(
return Ok(());
}
// store all new messages to monitor edits and deletes
message_logger::handle_create(data, new_message).await?;
eta::handle(ctx, new_message).await?;
expand_link::handle(ctx, new_message).await?;
analyze_logs::handle(ctx, new_message, data).await?;
}
Event::MessageDelete {
channel_id,
deleted_message_id,
guild_id: _,
} => message_logger::handle_delete(ctx, data, channel_id, deleted_message_id).await?,
Event::MessageUpdate {
old_if_available: _,
new: _,
event,
} => {
message_logger::handle_update(data, event).await?;
}
Event::ReactionAdd { add_reaction } => {
delete_on_reaction::handle(ctx, add_reaction).await?
}