errbotio / err-backend-discord

Backend for Discord for Errbot
GNU General Public License v3.0
23 stars 22 forks source link

Do not react to bots #68

Closed greenaar closed 4 months ago

greenaar commented 4 months ago

Bots (most commonly webhooks) do not have a username.

This causes the on_message() function to fail when it is unable to match a userid to a username.

This patch ignores messages incoming from bots - this may not be ideal in all cases, but addresses my use case (messages being injected as webhooks via curl with no username)