benoitj / crafter-bot

SystemsCrafters irc libera.chat bot
GNU General Public License v3.0
9 stars 2 forks source link

advanced auto-reconnect #5

Open benoitj opened 3 years ago

benoitj commented 3 years ago

ERC has basic auto reconnect, but will not try on failure

this feature is to:

  1. implement a method that detects if ERC is connected or not
  2. implement a timer based call to detect if ERC is disconnected
  3. /reconnect if it's not connected

the timer should have a:

  1. initial delay to start looking (configurable). this is to avoid reconnecting before we even started the bot
  2. a time internal to check for connection status (configurable)

this must be implemented as a ERC module and built with a re-use intent