Merged some plugins

This commit is contained in:
Akamaru 2015-07-21 16:13:35 +02:00
parent d2edd0a9b3
commit 8c1d207544
6 changed files with 77 additions and 1 deletions

View File

@ -0,0 +1,11 @@
function run(msg, matches)
send_photo(get_receiver(msg), "pictures/aha.png", ok_cb, false)
end
return {
description = "Aha",
usage = {"aha.png"},
patterns = {"^aha.png$"},
run = run
}
--by Akamaru [https://ponywave.de]

View File

@ -0,0 +1,13 @@

function run(msg, matches)
local user_name = get_name(msg)
return "Gomen'nasai "..user_name.."-sempai 😣"
end
return {
description = "So ein dummer Bot",
usage = {"Baka Bot","baka bot","Baka bot","baka Bot","BAKA BOT"},
patterns = {"baka bot","Baka bot","baka Bot","Baka Bot","BAKA BOT"},
run = run
}
--by Akamaru [https://ponywave.de]

View File

@ -0,0 +1,11 @@
function run(msg, matches)
send_photo(get_receiver(msg), "pictures/luckystar/barusamikosu.jpg", ok_cb, false)
end
return {
description = "Balsamiko Essig!",
usage = {"/barusamiko","/barusamikosu","/Balsamiko Essig"},
patterns = {"^/barusamiko","^/barusamikosu","^/Balsamiko Essig"},
run = run
}
--by Akamaru [https://ponywave.de]

View File

@ -0,0 +1,11 @@
function run(msg, matches)
return '🐸🐸🐸'
end
return {
description = "🐸🐸🐸",
usage = {"/frosch","/Frosch"},
patterns = {"^/frosch","^/Frosch"},
run = run
}
--by Akamaru [https://ponywave.de]

View File

@ -0,0 +1,11 @@
function run(msg, matches)
return 'se'
end
return {
description = "Möpse? Meepse?",
usage = {"möp","Möp","meep","Meep"},
patterns = {"^möp$","Möp$","meep$","Meep$"},
run = run
}
--by Akamaru [https://ponywave.de]

View File

@ -1,6 +1,8 @@
-- Dirty code is dirty code, but idc -- Dirty code is dirty code, but idc
-- later: yolo, aha.png, baka_bot, barusamikosu, frosch, moepse -- later: yolo, aha.png, baka_bot, barusamikosu, frosch, moepse
function run(msg, matches) function run(msg, matches)
local user_name = get_name(msg)
if string.match(msg.text, "^[R|r][I|i][C|c][H|h] [B|b][I|i][T|t][C|c][H|h]$") then if string.match(msg.text, "^[R|r][I|i][C|c][H|h] [B|b][I|i][T|t][C|c][H|h]$") then
return 'Akamaru ist nicht reich!' return 'Akamaru ist nicht reich!'
elseif string.match(msg.text, "^#[O|o][L|l][D|d]$") then elseif string.match(msg.text, "^#[O|o][L|l][D|d]$") then
@ -32,6 +34,16 @@ function run(msg, matches)
return '(͡° ͜ʖ ͡°)' return '(͡° ͜ʖ ͡°)'
elseif string.match(msg.text, "^/[L|l][O|o][D|d]$") then elseif string.match(msg.text, "^/[L|l][O|o][D|d]$") then
return 'ಠ_ಠ' return 'ಠ_ಠ'
elseif string.match(msg.text, "^möp$") then
return 'se'
elseif string.match(msg.text, "^/[F|f][R|r][O|o][S|s][C|c][H|h]$") then
return '🐸🐸🐸'
elseif string.match(msg.text, "^/barusamiko$") or string.match(msg.text, "^/barusamikosu$") or string.match(msg.text, "^/Balsamiko Essig$") then
send_photo(get_receiver(msg), "pictures/luckystar/barusamikosu.jpg", ok_cb, false)
elseif string.match(msg.text, "^[B|b][A|a][K|k][A|a] [B|b][O|o][T|t]$") then
return "Gomen'nasai "..user_name.."-sempai 😣"
elseif string.match(msg.text, "^[A|a][H|h][A|a].[P|p][N|n][G|g]$") then
send_photo(get_receiver(msg), "pictures/aha.png", ok_cb, false)
end end
end end
@ -51,7 +63,14 @@ return {
"^/[N|n][B|b][C|c]$", "^/[N|n][B|b][C|c]$",
"^/[I|i][D|d][C|c]$", "^/[I|i][D|d][C|c]$",
"^/[L|l][F|f]$", "^/[L|l][F|f]$",
"^/[L|l][O|o][D|d]$" "^/[L|l][O|o][D|d]$",
"^möp$",
"^/[F|f][R|r][O|o][S|s][C|c][H|h]$",
"^/barusamiko$",
"^/barusamikosu$",
"^/Balsamiko Essig$",
"^[B|b][A|a][K|k][A|a] [B|b][O|o][T|t]$",
"^[A|a][H|h][A|a].[P|p][N|n][G|g]$"
}, },
run = run run = run
} }