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)
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)