Terminus-Project / Terminus-Bot

A scriptable IRC bot written in Ruby.
http://terminus-bot.net/
Other
38 stars 18 forks source link

add configuration setting to allow additional script directories #75

Open j0rdan76 opened 10 years ago

j0rdan76 commented 10 years ago

Put a line in the config for Terminus-Bot to look in for extra scripts.

kabaka commented 9 years ago

Should not be too difficult. Will just have to rework the concept of Bot::SCRIPTS_PATH to be more dynamic and use arrays instead.

kabaka commented 9 years ago

Actually, we will also need to figure out how to handle script naming.

Presently, file names are used for identifying scripts. Using multiple directories, we will either have duplicate script names, script names that include the name of the parent directory, or we can disallow duplicate names and fail on load attempts.

Or we could always keep the last winner, allowing overrides of bundled scripts without having to modify them. I think this is my favorite.

If nobody disagrees, it will be done like this.