fix sendmeme command not sending new memes
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
LordMZTE 2021-07-31 20:45:44 +02:00
parent aea4b48c2b
commit 9c1f1c44ac
2 changed files with 3 additions and 1 deletions

View file

@ -1,2 +1,2 @@
# 0.2.7
- meme cache is now cleared by sendmeme command so new memes can be sent

View file

@ -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(());
}