Closed totallymike closed 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.
plugin loader implemented. Not perfect, but there. Further improvements get their own issues ;)
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.