test with patterns
This commit is contained in:
parent
975334f28b
commit
2deb795a35
@ -4,8 +4,8 @@ end
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
description = "Nyu?",
|
description = "Nyu?",
|
||||||
usage = {"nyu","Nyu"},
|
usage = {"nyu"},
|
||||||
patterns = {"^nyu","^Nyu"},
|
patterns = {"^[N|n][Y|y][U|u]$"},
|
||||||
run = run
|
run = run
|
||||||
}
|
}
|
||||||
--by Akamaru [https://ponywave.de]
|
--by Akamaru [https://ponywave.de]
|
@ -1,11 +1,14 @@
|
|||||||
function run(msg, matches)
|
function run(msg, matches)
|
||||||
if matches[1] == "nairaderp" then
|
if matches[1] == "nairaderp" then
|
||||||
send_document(get_receiver(msg), "sticker/naira_derp.webp", ok_cb, false)
|
send_document(get_receiver(msg), "sticker/naira_derp.webp", ok_cb, false)
|
||||||
elseif matches[1] == "facepalm" then
|
elseif matches[1] == "facepalm" then
|
||||||
send_document(get_receiver(msg), "sticker/facepalm.webp", ok_cb, false)
|
send_document(get_receiver(msg), "sticker/facepalm.webp", ok_cb, false)
|
||||||
elseif matches[1] == "liste" then
|
elseif matches[1] == "all" then
|
||||||
return "nairaderp\nfacepalm"
|
return [[
|
||||||
end
|
/sticker nairaderp
|
||||||
|
/sticker facepalm
|
||||||
|
]]
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -6,7 +6,7 @@ end
|
|||||||
return {
|
return {
|
||||||
description = "Sagt dass ihr wieder da seid",
|
description = "Sagt dass ihr wieder da seid",
|
||||||
usage = {"/wd"},
|
usage = {"/wd"},
|
||||||
patterns = {"^/wd$"},
|
patterns = {"^/[w|W][d|D]$"},
|
||||||
run = run
|
run = run
|
||||||
}
|
}
|
||||||
--by Akamaru [https://ponywave.de]
|
--by Akamaru [https://ponywave.de]
|
Reference in New Issue
Block a user