forked from karx/dircord
Don't respond to bots
This commit is contained in:
parent
3e3e3540f1
commit
81c2129a21
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue