From c76428b1f25075b7b1b0df6b0eae6359d8e07ea8 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Sat, 14 Apr 2012 06:41:53 +0100 Subject: [PATCH] TODO note and autoshorten in automatic loading modules --- modules/autoshorten.js | 1 + run.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/autoshorten.js b/modules/autoshorten.js index fac1ac8..ac0ac7b 100644 --- a/modules/autoshorten.js +++ b/modules/autoshorten.js @@ -11,6 +11,7 @@ var autoshorten = function(dbot) { if(urlMatches !== null && urlMatches[0].length > 45) { var url = urlMatches[0]; // Only doing one, screw you. + // TODO: Make this use a decent URL shortener. Mine is shit. var options = { 'host': 'nc.no.de', 'port': 80, diff --git a/run.js b/run.js index 7588ad5..bf81ad7 100644 --- a/run.js +++ b/run.js @@ -51,7 +51,7 @@ var DBot = function(timers) { this.server = this.config.server || 'elara.ivixor.net'; this.port = this.config.port || 6667; this.webPort = this.config.webPort || 443; - this.moduleNames = this.config.modules || [ 'command', 'js', 'admin', 'kick', 'modehate', 'quotes', 'puns', 'spelling', 'web', 'youare' ]; + this.moduleNames = this.config.modules || [ 'command', 'js', 'admin', 'kick', 'modehate', 'quotes', 'puns', 'spelling', 'web', 'youare', 'autoshorten' ]; this.language = this.config.language || 'english'; this.sessionData = {};