Many IRC bots are modular, and this looks like the best route for nwitch to take. Theoretically, nwitch could simply become a set of plugins on top of an existing IRC bot, but I haven't found a bot that appeals to me.
How it might work
All plugins should be prefixed with nwitch- (like grunt- or express-). This namespaces plugins and prevents their configs from conflicting with ones used by nwitch itself.
All plugins should be uploaded to npm.
This would require the user to add plugins to package.json as dependencies... this isn't user-friendly.
A CLI tool will be used to download plugins from npm. nwitch will go through node_modules/ and load anything that begins with nwitch-.
Many IRC bots are modular, and this looks like the best route for nwitch to take. Theoretically, nwitch could simply become a set of plugins on top of an existing IRC bot, but I haven't found a bot that appeals to me.
How it might work
nwitch-
(likegrunt-
orexpress-
). This namespaces plugins and prevents their configs from conflicting with ones used by nwitch itself.This would require the user to add plugins topackage.json
as dependencies... this isn't user-friendly.A CLI tool will be used to download plugins from npm. nwitch will go throughnode_modules/
and load anything that begins withnwitch-
.npm
to install plugins.config.toml
: