totallymike / ircnode

Extensible IRC bot written with node.js
https://github.com/totallymike/ircnode/wiki
MIT License
4 stars 2 forks source link

Needs a way to extend #1

Closed totallymike closed 12 years ago

totallymike commented 12 years ago

Must be able to extend with new functionality and plugins without editing the actual client.js file.

The first method I can think of is to scrape a /plugins directory and eval whatever's in it. Hopefully there's a better way.

totallymike commented 12 years ago

Added the bones of a plugin loader. Can now load .js files from within a plugins/ folder that sits in the CWD.

This needs to be changed so the plugins location is formalized, and a definite API for plugins must be determined.

totallymike commented 12 years ago

plugin loader implemented. Not perfect, but there. Further improvements get their own issues ;)