From 96d219a03f3ce8414e86c12eee3dc86f64ec86cf Mon Sep 17 00:00:00 2001 From: Akamaru Date: Fri, 11 Sep 2015 17:35:04 +0200 Subject: [PATCH] added gif to random_pic_nsfw.lua --- plugins/random_pic_nsfw.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/random_pic_nsfw.lua b/plugins/random_pic_nsfw.lua index baff96b..d96ff48 100644 --- a/plugins/random_pic_nsfw.lua +++ b/plugins/random_pic_nsfw.lua @@ -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 \ No newline at end of file