feat: reintroduce eta
Signed-off-by: seth <getchoo@tuta.io>
This commit is contained in:
parent
4b80ec7345
commit
358df91509
4 changed files with 43 additions and 4 deletions
18
src/handlers/event/eta.rs
Normal file
18
src/handlers/event/eta.rs
Normal 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(())
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue