teleirc
teleirc copied to clipboard
Check to see if another TeleIRC bot instance is running
Issue
When a bot instance is already monitoring a Telegram group, and you start up another instance in another window, the first instance is forcefully shut down.
Reasoning
It may be a good idea to first check to see if a bot instance is already running, so the bot isn't forcefully shut down.
Result
No duplicate bots affect already-running instances, and the duplicate bots receive messages notifying them of another bot already running.
Next Steps
Research complexity of achieving this goal.
Perhaps this is also related to why the bot sometimes spawns off iterations of itself. For example, a bot with a configured nick of my-teleirc sometimes will connect as my-teleirc1, my-teleirc2, etc.