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
2015-08-17 18:58:11 +02:00

42 lines
2.2 KiB
Lua

function run(msg, matches)
if string.match(msg.text, '^/[Aa][Ss][Uu][Kk][Aa]$') then
send_photo(get_receiver(msg), "pictures/senrankagura/hanzouacademy/asuka.jpg", ok_cb, false)
elseif string.match(msg.text, '^/[Hh][Ii][Bb][Aa][Rr][Ii]$') then
send_photo(get_receiver(msg), "pictures/senrankagura/hanzouacademy/hibari.jpg", ok_cb, false)
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
send_photo(get_receiver(msg), "pictures/senrankagura/hebijoacademy/yomi.jpg", ok_cb, false)
end
end
return {
description = "Sendet euch ein Senran Kagura Charakter",
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]$'
},
run = run
}
--by Akamaru [https://ponywave.de]