This repository has been archived on 2021-04-24. You can view files and clone it, but cannot push or open issues or pull requests.
Mikubot/plugins/senran_kagura.lua

42 lines
2.2 KiB
Lua
Raw Permalink Normal View History

2015-04-14 20:21:23 +02:00
function run(msg, matches)
2015-08-17 18:58:11 +02:00
if string.match(msg.text, '^/[Aa][Ss][Uu][Kk][Aa]$') then
2015-04-14 20:21:23 +02:00
send_photo(get_receiver(msg), "pictures/senrankagura/hanzouacademy/asuka.jpg", ok_cb, false)
2015-08-17 18:58:11 +02:00
elseif string.match(msg.text, '^/[Hh][Ii][Bb][Aa][Rr][Ii]$') then
2015-04-14 20:21:23 +02:00
send_photo(get_receiver(msg), "pictures/senrankagura/hanzouacademy/hibari.jpg", ok_cb, false)
2015-08-17 18:58:11 +02:00
elseif string.match(msg.text, '^/[Ii][Kk][Aa][Gg][Uu][Rr][Aa]$') then
send_photo(get_receiver(msg), "pictures/senrankagura/hanzouacademy/ikaruga.jpg", ok_cb, false)
elseif string.match(msg.text, '^/[Kk][Aa][Tt][Ss][Uu][Rr][Aa][Gg][Ii]$') then
send_photo(get_receiver(msg), "pictures/senrankagura/hanzouacademy/katsuragi.jpg", ok_cb, false)
--elseif string.match(msg.text, '^/[Yy][Aa][Gg][Yy][Uu][Uu]$') then
--send_photo(get_receiver(msg), "pictures/senrankagura/hanzouacademy/yagyuu.jpg", ok_cb, false)
elseif string.match(msg.text, '^/[Hh][Aa][Rr][Uu][Gg][Aa]$') then
send_photo(get_receiver(msg), "pictures/senrankagura/hebijoacademy/haruka.jpg", ok_cb, false)
elseif string.match(msg.text, '^/[Hh][Ii][Kk][Aa][Gg][Ee]$') then
send_photo(get_receiver(msg), "pictures/senrankagura/hebijoacademy/hikage.jpg", ok_cb, false)
elseif string.match(msg.text, '^/[Hh][Oo][Mm][Uu][Rr][Aa]$') then
send_photo(get_receiver(msg), "pictures/senrankagura/hebijoacademy/homura.jpg", ok_cb, false)
elseif string.match(msg.text, '^/[Mm][Ii][Rr][Aa][Ii]$') then
send_photo(get_receiver(msg), "pictures/senrankagura/hebijoacademy/mirai.jpg", ok_cb, false)
elseif string.match(msg.text, '^/[Yy][Oo][Mm][Ii]$') then
2015-04-14 20:21:23 +02:00
send_photo(get_receiver(msg), "pictures/senrankagura/hebijoacademy/yomi.jpg", ok_cb, false)
end
end
return {
description = "Sendet euch ein Senran Kagura Charakter",
2015-08-17 18:58:11 +02:00
usage = {"/asuka","/hibari","/ikaruga","/katsuragi","/haruka","/hikage","/homura","/mirai","/yomi"},
patterns = {'^/[Aa][Ss][Uu][Kk][Aa]$',
'^/[Hh][Ii][Bb][Aa][Rr][Ii]$',
'^/[Ii][Kk][Aa][Gg][Uu][Rr][Aa]$',
'^/[Kk][Aa][Tt][Ss][Uu][Rr][Aa][Gg][Ii]$',
--'^/[Yy][Aa][Gg][Yy][Uu][Uu]$',
'^/[Hh][Aa][Rr][Uu][Gg][Aa]$',
'^/[Hh][Ii][Kk][Aa][Gg][Ee]$',
'^/[Hh][Oo][Mm][Uu][Rr][Aa]$',
'^/[Mm][Ii][Rr][Aa][Ii]$',
'^/[Yy][Oo][Mm][Ii]$'
},
2015-04-14 20:21:23 +02:00
run = run
}
2015-05-22 17:01:33 +02:00
--by Akamaru [https://ponywave.de]