* 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
|3 years ago|
|README.md||6 years ago|
|announce.js||3 years ago|
|bookclub.js||3 years ago|
|cardsAgainstHumanity.js||3 years ago|
|countdown.js||3 years ago|
|dublinBus.js||3 years ago|
|helpdesk.js||3 years ago|
|popping.js||3 years ago|
|redbrickCommittee.js||3 years ago|
|uno.js||3 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.