Add cat pun loading messages

This commit is contained in:
Alex Page 2023-03-02 22:52:19 -05:00
parent 30ffacfef0
commit 90c65693de
3 changed files with 36 additions and 3 deletions

View file

@ -81,9 +81,13 @@ pub async fn play(
}
if let Some(handler_lock) = manager.get(guild.id) {
let response = ctx
.send(|r| r.content("https://media.giphy.com/media/H1dxi6xdh4NGQCZSvz/giphy.gif"))
.await?;
let mut msg = MessageBuilder::new();
msg.push_line(String::from(openai::get_random_loading_message()))
.push_named_link(
"",
"https://media.giphy.com/media/H1dxi6xdh4NGQCZSvz/giphy.gif",
);
let response = ctx.send(|r| r.content(msg.build())).await?;
let mut handler = handler_lock.lock().await;