added gif to random_pic_nsfw.lua

This commit is contained in:
Akamaru 2015-09-11 17:35:04 +02:00
parent e8a5cf7b26
commit 96d219a03f

View File

@ -8,7 +8,8 @@ end
function run(msg, matches) function run(msg, matches)
local pics = { local pics = {
-- add more below! -- add more below!
["/nsfw"] = "/home/pi/USB/nsfw/" ["/nsfw"] = "/home/pi/USB/nsfw/",
["/nsfw gif"] = "/home/pi/USB/nsfw/gifs/"
} }
local receiver = get_receiver(msg) local receiver = get_receiver(msg)
@ -31,8 +32,8 @@ end
return { return {
description = "Sendet ein zufälliges Bild (NSFW)", description = "Sendet ein zufälliges Bild (NSFW)",
usage = {"/nsfw"}, usage = {"/nsfw (gif)"},
patterns = {"^/nsfw$"}, patterns = {"^/nsfw$","^/nsfw gif$"},
run = run run = run
} }
end end