From e1f4d0c200e5718256f04c35db7fc4f5019b81a1 Mon Sep 17 00:00:00 2001 From: Dafydd Francis Date: Fri, 21 Dec 2012 14:10:21 +0000 Subject: [PATCH 1/2] Update modules/js/js.js jesus --- modules/js/js.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/js/js.js b/modules/js/js.js index 76d5f91..d6f5dd1 100644 --- a/modules/js/js.js +++ b/modules/js/js.js @@ -28,10 +28,14 @@ var js = function(dbot) { event.reply(ret); } } + }, + 'jesus': function (event) { + event.reply(event.user + ": s/(.)(.)(.)(..)/\4\2 \1\3/") } }; commands['~js'].regex = [/^~js (.*)/, 2]; commands['~ajs'].regex = [/^~ajs (.*)/, 2]; + commands['jesus'].regex = [/^jesus$/, 2]; return { 'name': 'js', From 3f2bb2bde1f26375e85138d2740b82543f7d1c0e Mon Sep 17 00:00:00 2001 From: Dafydd Francis Date: Wed, 30 Jan 2013 22:13:08 +0000 Subject: [PATCH 2/2] Just wanna post hashtags #yolo --- modules/dent/dent.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/dent/dent.js b/modules/dent/dent.js index 8ee57e0..5638ccc 100644 --- a/modules/dent/dent.js +++ b/modules/dent/dent.js @@ -9,12 +9,12 @@ var dent = function(dbot) { var username = dbot.config.dent.username, password = dbot.config.dent.password, info, - auth = "Basic " + + auth = "Basic " + new Buffer(username + ":" + password).toString("base64"); request.post({ 'url': 'http://identi.ca/api/statuses/update.json?status=' + - content, + escape(content), 'headers': { 'Authorization': auth } @@ -36,7 +36,7 @@ var dent = function(dbot) { this.onLoad = function() { if(dbot.config.dent.dentQuotes === true && _.has(dbot.modules, 'quotes')) { dbot.api.command.addHook('~qadd', function(key, text) { - this.api.post(key + ': ' + text); + this.api.post(key + ': ' + text); }.bind(this)); } }.bind(this);