-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Maybe this is intentional or unavoidable, but I noticed that it's possible to start the same bot more than once.
For example:
- I restart Relax, so that it's running all my bots (exactly once each).
- I manually start a particular bot
ntimes by callingRelax::Bot.start!(uid, token)from irb. - I send a message to that bot.
Sending message_new for this user and channelandsending event back to clienteach appearn + 1times in the logs, followed immediately byignoring, not sending event back to clientntimes.
It's not a problem, because it ignores all but 1 of the copies of the message, and puts only 1 event into redis. But I was surprised that it was possible to start the same bot more than once.
Metadata
Metadata
Assignees
Labels
No labels