removed old and added new sticker plugin

This commit is contained in:
Akamaru 2015-05-28 21:37:36 +02:00
parent 8c037629a7
commit 13f3a0057d
3 changed files with 17 additions and 22 deletions

View File

@ -1,11 +0,0 @@
function run(msg, matches)
send_document(get_receiver(msg), "sticker/facepalm.webp", ok_cb, false)
end
return {
description = "Sendet ein Facepalm-Sticker",
usage = {"/facepalm","/Facepalm"},
patterns = {"^/facepalm","^/Facepalm"},
run = run
}
--by Akamaru [https://ponywave.de]

View File

@ -1,11 +0,0 @@
function run(msg, matches)
send_document(get_receiver(msg), "sticker/naira_derp.webp", ok_cb, false)
end
return {
description = "Naira Derp",
usage = {"/nairad","/Nairad"},
patterns = {"^/nairad$","^/Nairad$"},
run = run
}
--by Akamaru [https://ponywave.de]

17
plugins/sticker.lua Normal file
View File

@ -0,0 +1,17 @@
function run(msg, matches)
if matches[1] == "nairaderp" then
send_document(get_receiver(msg), "sticker/naira_derp.webp", ok_cb, false)
elseif matches[1] == "facepalm" then
send_document(get_receiver(msg), "sticker/facepalm.webp", ok_cb, false)
elseif matches[1] == "liste" then
return "nairaderp\nfacepalm"
end
end
return {
description = "Sendet Custom Sticker",
usage = {"/sticker [Stickername]"},
patterns = {"^/[S|s]ticker (.*)$"},
run = run
}
--by Akamaru [https://ponywave.de]