forked from GitHub/dbot
Merge pull request #342 from moggers87/nsfw
Warn users about content of ~ri links
This commit is contained in:
commit
fad99b8d03
@ -31,7 +31,7 @@ var imgur = function(dbot) {
|
|||||||
this.commands = {
|
this.commands = {
|
||||||
'~ri': function(event) {
|
'~ri': function(event) {
|
||||||
this.api.getRandomImage(function(link) {
|
this.api.getRandomImage(function(link) {
|
||||||
event.reply(event.user + ': ' + link);
|
event.reply(event.user + ': (' + dbot.t('nsfw') + ') ' + link);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
6
modules/imgur/strings.json
Normal file
6
modules/imgur/strings.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"nsfw": {
|
||||||
|
"en": "might be NSFW",
|
||||||
|
"na'vi": "kxawm ke wivìntxu evengur"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user