From 8c1d207544f89ce8ecd01e7f1c3606ce065ef5d9 Mon Sep 17 00:00:00 2001 From: Akamaru Date: Tue, 21 Jul 2015 16:13:35 +0200 Subject: [PATCH] Merged some plugins --- plugins/pluginsold/aha.png.lua | 11 +++++++++++ plugins/pluginsold/baka_bot.lua | 13 +++++++++++++ plugins/pluginsold/barusamikosu.lua | 11 +++++++++++ plugins/pluginsold/frosch.lua | 11 +++++++++++ plugins/pluginsold/moepse.lua | 11 +++++++++++ plugins/special.lua | 21 ++++++++++++++++++++- 6 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 plugins/pluginsold/aha.png.lua create mode 100644 plugins/pluginsold/baka_bot.lua create mode 100644 plugins/pluginsold/barusamikosu.lua create mode 100644 plugins/pluginsold/frosch.lua create mode 100644 plugins/pluginsold/moepse.lua diff --git a/plugins/pluginsold/aha.png.lua b/plugins/pluginsold/aha.png.lua new file mode 100644 index 0000000..da9816d --- /dev/null +++ b/plugins/pluginsold/aha.png.lua @@ -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] \ No newline at end of file diff --git a/plugins/pluginsold/baka_bot.lua b/plugins/pluginsold/baka_bot.lua new file mode 100644 index 0000000..beeb9fa --- /dev/null +++ b/plugins/pluginsold/baka_bot.lua @@ -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] \ No newline at end of file diff --git a/plugins/pluginsold/barusamikosu.lua b/plugins/pluginsold/barusamikosu.lua new file mode 100644 index 0000000..406cb11 --- /dev/null +++ b/plugins/pluginsold/barusamikosu.lua @@ -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] \ No newline at end of file diff --git a/plugins/pluginsold/frosch.lua b/plugins/pluginsold/frosch.lua new file mode 100644 index 0000000..fc84bb1 --- /dev/null +++ b/plugins/pluginsold/frosch.lua @@ -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] \ No newline at end of file diff --git a/plugins/pluginsold/moepse.lua b/plugins/pluginsold/moepse.lua new file mode 100644 index 0000000..63e9e71 --- /dev/null +++ b/plugins/pluginsold/moepse.lua @@ -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] \ No newline at end of file diff --git a/plugins/special.lua b/plugins/special.lua index a7a6017..90beca9 100644 --- a/plugins/special.lua +++ b/plugins/special.lua @@ -1,6 +1,8 @@ -- Dirty code is dirty code, but idc -- later: yolo, aha.png, baka_bot, barusamikosu, frosch, moepse 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 return 'Akamaru ist nicht reich!' elseif string.match(msg.text, "^#[O|o][L|l][D|d]$") then @@ -32,6 +34,16 @@ function run(msg, matches) return '(͡° ͜ʖ ͡°)' elseif string.match(msg.text, "^/[L|l][O|o][D|d]$") then 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 @@ -51,7 +63,14 @@ return { "^/[N|n][B|b][C|c]$", "^/[I|i][D|d][C|c]$", "^/[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 }