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)
local pics = {
-- 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)
@ -31,8 +32,8 @@ end
return {
description = "Sendet ein zufälliges Bild (NSFW)",
usage = {"/nsfw"},
patterns = {"^/nsfw$"},
usage = {"/nsfw (gif)"},
patterns = {"^/nsfw$","^/nsfw gif$"},
run = run
}
end