WildPHP / irc-bot

A simple and modular PHP IRC bot
MIT License
84 stars 24 forks source link

Module version check #10

Closed NanoSector closed 7 years ago

NanoSector commented 9 years ago

Allow commands to set a version of the bot they're known to work with. Upon initialization of the bot this version would be compared to the version of the bot.

If the version of the command is too high, don't load the command. Problems may arise from missing new changes. If the version is equal, nothing going on. Continue loading. If the version is lower, display a warning the command may not behave as expected. We try to keep compatibility with commands at a maximum but changes like #5 just can't avoid breaking stuff.

NanoSector commented 9 years ago

This is only really relevant once we are going with actual releases.

NanoSector commented 7 years ago

The main module class referenced in the configuration file can contain a static variable which lists compatibility, maybe.

NanoSector commented 7 years ago

Implemented as per https://github.com/WildPHP/Wild-IRC-Bot/commit/9e769970e8aaa705e661a0f482a12c15d951de6e