Don't respond to bots

This commit is contained in:
Yash Karandikar 2021-12-27 10:25:42 -06:00
parent 3e3e3540f1
commit 81c2129a21
Signed by untrusted user: karx
GPG key ID: A794DA2529474BA5

View file

@ -37,7 +37,7 @@ impl EventHandler for Handler {
(http, channel_id, user_id)
};
if user_id != msg.author.id {
if user_id != msg.author.id && !msg.author.bot {
send_message(&http, &channel_id, &format!("{}: {}", nick, msg.content))
.await
.unwrap();