From c71345a6937ea9a6b78ccc14bdcbf2e23ea875a6 Mon Sep 17 00:00:00 2001 From: reality Date: Sat, 12 Jan 2013 12:36:23 +0000 Subject: [PATCH 1/3] update jsbot --- jsbot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsbot b/jsbot index cf62909..9477dc3 160000 --- a/jsbot +++ b/jsbot @@ -1 +1 @@ -Subproject commit cf6290902cfed0c8d698ce64df2ae0ae0a64b9f2 +Subproject commit 9477dc33ff1b940f8c07225f00d0648de2a41cb4 From 2245167cf302d6306e1e1ba363d7a3b45bdd03c8 Mon Sep 17 00:00:00 2001 From: Sam Nicholls Date: Sat, 12 Jan 2013 13:01:43 +0000 Subject: [PATCH 2/3] Added patching info for Express --- modules/web/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/modules/web/README.md b/modules/web/README.md index 86ebc10..c00af25 100644 --- a/modules/web/README.md +++ b/modules/web/README.md @@ -7,6 +7,23 @@ Web interface It's a web interface for DBot. What of it? ## Requirements +###Express and Jade@0.25 +``` +npm install express +npm install jade@0.25 +``` +###Express Patch +Express currently needs to be patched, edit ~/node_modules/express/lib/express.js as thus; +``` + 52 for (var key in connect.middleware) { +**53 if( !Object.prototype.hasOwnProperty(key) ) { + 54 Object.defineProperty( + 55 exports + 56 , key + 57 , Object.getOwnPropertyDescriptor(connect.middleware, key)); +**58 } + 59 } +``` ###Twitter Bootstrap ``` cd depressionbot/public/ From 73ec2bb182fbbedce483545a8762b8fa2c661e23 Mon Sep 17 00:00:00 2001 From: Sam Nicholls Date: Sat, 12 Jan 2013 13:17:31 +0000 Subject: [PATCH 3/3] Upgraded stats and users to core --- config.json.sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.json.sample b/config.json.sample index 532460a..05c37a4 100644 --- a/config.json.sample +++ b/config.json.sample @@ -13,7 +13,7 @@ }, "admins": [ "batman" ], "moderators": [ "whatever" ], - "moduleNames": [ "ignore", "admin", "command", "dice", "js", "kick", "quotes", "spelling", "youare" ], + "moduleNames": [ "ignore", "admin", "command", "dice", "js", "kick", "quotes", "spelling", "youare", "stats", "users" ], "language": "english", "debugMode": true }