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/sakurasou.lua

34 lines
1.5 KiB
Lua
Raw 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, '^/[Ss][Hh][Ii][Ii][Nn][Aa]$') then
2015-04-14 20:21:23 +02:00
send_photo(get_receiver(msg), "pictures/sakurasou/shiina.jpg", ok_cb, false)
2015-08-17 18:58:11 +02:00
elseif string.match(msg.text, '^/[Cc][Hh][Ii][Hh][Ii][Rr][Oo]$') then
2015-04-14 20:21:23 +02:00
send_photo(get_receiver(msg), "pictures/sakurasou/chihiro.jpg", ok_cb, false)
2015-08-17 18:58:11 +02:00
elseif string.match(msg.text, '^/[Jj][Ii][Nn]$') then
2015-04-14 20:21:23 +02:00
send_photo(get_receiver(msg), "pictures/sakurasou/jin.jpg", ok_cb, false)
2015-08-17 18:58:11 +02:00
elseif string.match(msg.text, '^/[Mm][Ii][Ss][Aa][Kk][Ii]$') then
2015-04-14 20:21:23 +02:00
send_photo(get_receiver(msg), "pictures/sakurasou/misaki.jpg", ok_cb, false)
2015-08-17 18:58:11 +02:00
elseif string.match(msg.text, '^/[Nn][Aa][Nn][Aa][Mm][Ii]$') then
2015-04-14 20:21:23 +02:00
send_photo(get_receiver(msg), "pictures/sakurasou/nanami.jpg", ok_cb, false)
2015-08-17 18:58:11 +02:00
elseif string.match(msg.text, '^/[Rr][Yy][Uu][Uu][Nn][Oo][Ss][Uu][Kk][Ee]$') then
2015-04-14 20:21:23 +02:00
send_photo(get_receiver(msg), "pictures/sakurasou/ryuunosuke.jpg", ok_cb, false)
2015-08-17 18:58:11 +02:00
elseif string.match(msg.text, '^/[Ss][Oo][Rr][Aa][Tt][Aa]$') then
2015-04-14 20:21:23 +02:00
send_photo(get_receiver(msg), "pictures/sakurasou/sorata.jpg", ok_cb, false)
2015-08-17 18:58:11 +02:00
end
2015-04-14 20:21:23 +02:00
end
return {
description = "Sendet euch ein Charakter aus Sakurasou no Pet na Kanojo",
2015-08-17 18:58:11 +02:00
usage = {"/Shiina","/Chihiro","/Jin","/Misaki","/Nanami","/Ryuunosuke","/Sorata"},
patterns = {'^/[Ss][Hh][Ii][Ii][Nn][Aa]$',
'^/[Cc][Hh][Ii][Hh][Ii][Rr][Oo]$',
'^/[Jj][Ii][Nn]$',
'^/[Mm][Ii][Ss][Aa][Kk][Ii]$',
'^/[Nn][Aa][Nn][Aa][Mm][Ii]$',
'^/[Rr][Yy][Uu][Uu][Nn][Oo][Ss][Uu][Kk][Ee]$',
'^/[Ss][Oo][Rr][Aa][Tt][Aa]$'
},
2015-04-14 20:21:23 +02:00
run = run
2015-04-20 18:52:25 +02:00
}
2015-05-22 17:01:33 +02:00
--by Akamaru [https://ponywave.de]