fix sendmeme command not sending new memes
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
aea4b48c2b
commit
9c1f1c44ac
|
@ -1,2 +1,2 @@
|
|||
# 0.2.7
|
||||
|
||||
- meme cache is now cleared by sendmeme command so new memes can be sent
|
||||
|
|
|
@ -114,6 +114,8 @@ pub async fn on_msg(msg: &str, room: Room, bot: &Bot) -> anyhow::Result<()> {
|
|||
return Ok(());
|
||||
};
|
||||
|
||||
bot.jm_client.write().await.clear_cache().await;
|
||||
bot.meme_count.store(0, Ordering::SeqCst);
|
||||
cache_send_meme(id, bot, room).await?;
|
||||
return Ok(());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue