Closed Marqin closed 8 years ago
When there is no/bad token provided I also get this huge error (just there is no session_id), so it seems it's not only for normal messages, but for all events
I have injected IO.puts before https://github.com/rmcafee/discord_ex/blob/master/lib/discord_ex/client/client.ex#L105 and event
, payload
, state
seem to be ok.
inspect(state[:handler])
gives me handler"BotName"
- is it ok?
Ok, I found. It's bug in README.
handler
given to bot should not be it's name. It should be module name of module that implements event handling. Gonna make some PR.
When someone writes to channel/on DM:
Bot code (part under supervisor):
I've changed sensitive data to
REMOVED_SECRET_DATA
.