empus / armour

Armour -- an advanced eggdrop channel protection script for IRC
13 stars 11 forks source link

Load all packages earlier and exit with helpful messages if any are missing #144

Open empus opened 6 months ago

empus commented 6 months ago

Overview

Missing TCL packages can result in a failed Armour load or unexpected behaviour. In some cases, a partial load can result in a half-initialised Armour, with some users opting to start over.

Loading all packages early and catching errors can prevent these issues. Currently, this is only done for some packages.

Detail

  1. Load all packages in arm-01_depends.tcl:
  • tcl 8.6
  • http
  • dns
  • sqlite3
  • md5
  • http
  • tls
  • json
  • sha1*
  • sha256*
  1. Output errors to ./armour/<botname>.log

  2. Kill the bot (via die) with helpful message

Considerations

Include suggested package based on the OS the bot is installed on.