From ee06dc634bf8cf6e03a91b3419a5547e5ec7678e Mon Sep 17 00:00:00 2001 From: Matt Molyneaux Date: Thu, 11 Apr 2013 20:25:18 +0100 Subject: [PATCH 1/2] I warned you about porn bro, I told you dog! I told you man I TOLD you about porn! --- modules/imgur/imgur.js | 2 +- modules/imgur/strings.json | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 modules/imgur/strings.json diff --git a/modules/imgur/imgur.js b/modules/imgur/imgur.js index 3db7f1c..88bb35b 100644 --- a/modules/imgur/imgur.js +++ b/modules/imgur/imgur.js @@ -31,7 +31,7 @@ var imgur = function(dbot) { this.commands = { '~ri': function(event) { this.api.getRandomImage(function(link) { - event.reply(event.user + ': ' + link); + event.reply(event.user + ' (' + dbot.t('nsfw') + '): ' + link); }); } } diff --git a/modules/imgur/strings.json b/modules/imgur/strings.json new file mode 100644 index 0000000..2d30288 --- /dev/null +++ b/modules/imgur/strings.json @@ -0,0 +1,6 @@ +{ + "nsfw": { + "en": "might be NSFW", + "na'vi": "kxawm ke wivìntxu evengur" + } +} From 3d918414b80c7bcb94faf860dffc307a3fd6faa1 Mon Sep 17 00:00:00 2001 From: Matt Molyneaux Date: Thu, 11 Apr 2013 20:33:33 +0100 Subject: [PATCH 2/2] Put the colon next to the name, moron --- modules/imgur/imgur.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/imgur/imgur.js b/modules/imgur/imgur.js index 88bb35b..2bc6512 100644 --- a/modules/imgur/imgur.js +++ b/modules/imgur/imgur.js @@ -31,7 +31,7 @@ var imgur = function(dbot) { this.commands = { '~ri': function(event) { this.api.getRandomImage(function(link) { - event.reply(event.user + ' (' + dbot.t('nsfw') + '): ' + link); + event.reply(event.user + ': (' + dbot.t('nsfw') + ') ' + link); }); } }