From 529194e4df15733608b1213ab6267c63a3d71277 Mon Sep 17 00:00:00 2001 From: reality Date: Tue, 15 Jan 2013 16:09:57 +0000 Subject: [PATCH] transform dice [#131] --- modules/dice/dice.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/modules/dice/dice.js b/modules/dice/dice.js index 172822b..e45385a 100644 --- a/modules/dice/dice.js +++ b/modules/dice/dice.js @@ -93,13 +93,11 @@ var dice = function(dbot) { } }; - return { - 'name': 'dice', - 'commands': commands, - 'ignorable': true - }; + this.name = 'dice'; + this.commands = commands; + this.ignorable = true; } exports.fetch = function(dbot) { - return dice(dbot); + return new dice(dbot); };