docker shit

This commit is contained in:
nora 2022-02-26 00:10:04 +01:00
parent d7901a4fc8
commit e6414abaf1
5 changed files with 35 additions and 4 deletions

View file

@ -21,10 +21,7 @@ pub async fn normal_message(ctx: &Context, msg: &Message) {
let lowercase_content = msg.content.to_lowercase();
for (trigger, reaction) in &reactions.auto_react {
if lowercase_content.contains(trigger) {
if let Err(why) = msg
.react(&ctx.http, ReactionType::Unicode(reaction.clone()))
.await
{
if let Err(why) = msg.react(&ctx.http, ReactionType::Unicode(reaction.clone())).await {
eprintln!("Error reacting {}", why);
}
}