teleirc icon indicating copy to clipboard operation
teleirc copied to clipboard

Check to see if another TeleIRC bot instance is running

Open Tjzabel opened this issue 6 years ago • 1 comments

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.

Tjzabel avatar Apr 20 '19 23:04 Tjzabel

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.

justwheel avatar Apr 20 '19 23:04 justwheel