mirror of
https://github.com/reality/dbot.git
synced 2024-12-26 04:32:37 +01:00
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 = {
|
||||
'~ri': function(event) {
|
||||
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