mirror of
https://github.com/Noratrieb/killjoy-turret.git
synced 2026-01-14 14:45:01 +01:00
docker shit
This commit is contained in:
parent
d7901a4fc8
commit
e6414abaf1
5 changed files with 35 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue