diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1a7610d --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +# Ignore the user config files +config.json + +# Ignore the user database +db.json diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..0d17ed4 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "jsbot"] + path = jsbot + url = git://github.com/reality/jsbot.git diff --git a/README.md b/README.md index 7383937..698566e 100644 --- a/README.md +++ b/README.md @@ -14,10 +14,17 @@ writing documentation. Requirements: - Node JS -- [JSBot](http://github.com/reality/JSBot "JSBot"), the Javascript library I - wrote to handle the IRC protocol and event listeners etc. +- [JSBot](http://github.com/reality/JSBot "JSBot"), a Javascript library which + handles the IRC protocol. - Various modules have their own requirements also. +### JSBot + +JSBot can be imported by running the following commands in the cloned repository: + + git submodule init + git submodule update + ## Modules: ### Command diff --git a/config.json.sample b/config.json.sample index 78dd1cc..8603c24 100644 --- a/config.json.sample +++ b/config.json.sample @@ -11,5 +11,5 @@ ] } }, - "admin": [ "batman" ], + "admin": [ "batman" ] } diff --git a/jsbot b/jsbot new file mode 160000 index 0000000..43b90e2 --- /dev/null +++ b/jsbot @@ -0,0 +1 @@ +Subproject commit 43b90e24b9293029f6ef4362304fb127e4f1530c diff --git a/run.js b/run.js index 8958783..4797e6d 100644 --- a/run.js +++ b/run.js @@ -1,6 +1,6 @@ var fs = require('fs'); var timers = require('./timer'); -var jsbot = require('./jsbot'); +var jsbot = require('./jsbot/jsbot'); require('./snippets'); var DBot = function(timers) {