* use airbnb js * fix plugins * fix bookclub * fix rb cmt and dublin bus * fix countdown and uno * use airbnb linting? * rename dublin bus code * rename folders * bug fixes * remove duplicate code * update docker * fix errors from moving to classes * clean up * use async * replace plugger with dynamic glob * use plugins for cah and dbus * update package.json
|4 years ago|
|README.md||6 years ago|
|announce.js||4 years ago|
|bookclub.js||4 years ago|
|cardsAgainstHumanity.js||4 years ago|
|countdown.js||4 years ago|
|dublinBus.js||4 years ago|
|helpdesk.js||4 years ago|
|popping.js||4 years ago|
|redbrickCommittee.js||4 years ago|
|uno.js||4 years ago|
There is a small example plugin in the dublin_bus.js file.
Each plugin should be passed in the IRC bot as an argument so that it can register its commands and callbacks with the bot, any extra configuration that needs to happen for the plugin should happen in its own configuration directory to keep the main bot configuration clean.
The bulk of the code for each plugin should go in the plugin_code directory, and enabled plugins should be symlinked to the plugins_enabled directory. To disable a plugin, simply remove the symlink from plugins_enabled and restart the bot.