feat: reintroduce eta

Signed-off-by: seth <getchoo@tuta.io>
This commit is contained in:
TheKodeToad 2023-12-03 13:42:36 +00:00 committed by seth
parent 4b80ec7345
commit 358df91509
4 changed files with 43 additions and 4 deletions

18
src/handlers/event/eta.rs Normal file
View file

@ -0,0 +1,18 @@
use crate::{consts, utils};
use color_eyre::eyre::Result;
use poise::serenity_prelude::{Context, Message};
pub async fn handle_eta(ctx: &Context, message: &Message) -> Result<()> {
if !message.content.contains(" eta ") {
return Ok(());
}
let response = format!(
"{} <:pofat:1031701005559144458>",
utils::random_choice(consts::ETA_MESSAGES)?
);
message.reply(ctx, response).await?;
Ok(())
}