updated usage and patterns

This commit is contained in:
Akamaru 2015-04-28 17:49:11 +02:00
parent b18d2c6197
commit 5d55b9a1a2
59 changed files with 122 additions and 257 deletions

View File

@ -31,7 +31,7 @@ end
return { return {
description = "9GAG", description = "9GAG",
usage = "/9gag", usage = {"/9gag"},
patterns = {"^/9gag$"}, patterns = {"^/9gag$"},
run = run run = run
} }

View File

@ -6,7 +6,7 @@ end
return { return {
description = "Sagt dass ihr afk seid", description = "Sagt dass ihr afk seid",
usage = "/afk", usage = {"/afk"},
patterns = {"^/afk(.*)$"}, patterns = {"^/afk(.*)$"},
run = run run = run
} }

View File

@ -1,10 +1,10 @@
function run(msg, matches) function run(msg, matches)
send_photo(get_receiver(msg), "pictures/aha.png", ok_cb, false) send_photo(get_receiver(msg), "pictures/aha.png", ok_cb, false)
end end
return { return {
description = "Aha", description = "Aha",
usage = "aha.png", usage = {"aha.png"},
patterns = {"^aha.png"}, patterns = {"^aha.png"},
run = run run = run
} }

View File

@ -1,16 +1,13 @@
function run(msg, matches) function run(msg, matches)
return "Gomen'nasai 😣" local user_name = get_name(msg)
return "Gomen'nasai "..user_name.."-sempai 😣"
end end
return { return {
description = "So ein dummer Bot", description = "So ein dummer Bot",
usage = "Baka Bot", usage = {"Baka Bot","baka bot","Baka bot","baka Bot","BAKA BOT"},
patterns = {"^baka bot", patterns = {"baka bot","Baka bot","baka Bot","Baka Bot","BAKA BOT"},
"Baka bot",
"baka Bot",
"Baka Bot",
"BAKA BOT"},
run = run run = run
} }
--by Akamaru --by Akamaru

View File

@ -4,10 +4,8 @@ end
return { return {
description = "Balsamiko Essig!", description = "Balsamiko Essig!",
usage = "/barusamiko", usage = {"/barusamiko","/barusamikosu","/Balsamiko Essig"},
patterns = {"^/barusamiko", patterns = {"^/barusamiko","^/barusamikosu","^/Balsamiko Essig"},
"^/barusamikosu",
"^/Balsamiko Essig"},
run = run run = run
} }
--by Akamaru --by Akamaru

View File

@ -17,7 +17,7 @@ end
return { return {
description = "Checkt ob Boerse.to online ist", description = "Checkt ob Boerse.to online ist",
usage = "", usage = {"Hierfür gibt es kein Befehl"},
patterns = {}, patterns = {},
run = nil, run = nil,
cron = cron cron = cron

View File

@ -59,14 +59,8 @@ end
return { return {
description = "Sendet ein zufälliges Boobs/Butts Bild", description = "Sendet ein zufälliges Boobs/Butts Bild",
usage = { usage = {"/boobs","/butts"},
"/boobs", patterns = {"^/boobs$","^/butts$"},
"/butts"
},
patterns = {
"^/boobs$",
"^/butts$"
},
run = run run = run
} }

View File

@ -68,10 +68,8 @@ end
return { return {
description = "", description = "",
usage = {""}, usage = {"Das kann nur Akamaru"},
patterns = { patterns = {"^/channel? (enable)","^/channel? (disable)" },
"^/channel? (enable)",
"^/channel? (disable)" },
run = run, run = run,
privileged = true, privileged = true,
pre_process = pre_process pre_process = pre_process

View File

@ -7,7 +7,7 @@ end
function run(msg, matches) function run(msg, matches)
local j = getChuckNorris() local j = getChuckNorris()
if (j == nil) then if (j == nil) then
return "Zzzzz..." return "Huch, da lief was falsch!"
else else
return j return j
end end
@ -15,7 +15,7 @@ end
return { return {
description = "Sendet Chuck Norris Witze (Englisch)", description = "Sendet Chuck Norris Witze (Englisch)",
usage = "/cn", usage = {"/cn"},
patterns = {"^/cn$"}, patterns = {"^/cn$"},
run = run run = run
} }

View File

@ -1,4 +1,3 @@
do do
@ -24,21 +23,16 @@ function run(msg, matches)
local receiver = get_receiver(msg) local receiver = get_receiver(msg)
send_photo_from_url(receiver, url) send_photo_from_url(receiver, url)
else else
return 'Error getting dicks for you, please try again later.' return 'Huch, da lief was falsch.'
end end
end end
return { return {
description = "Gets a random dicks pic", description = "Das dümmste Plugin ever [NSFW]",
usage = { usage = {"/dicks"},
"/dicks: Get a dicks NSFW image. 🔞" patterns = {"^/dicks$"},
},
patterns = {
"^/dicks$"
},
run = run run = run
} }
end
end

View File

@ -5,7 +5,7 @@ end
return { return {
description = "Wiederholt euch", description = "Wiederholt euch",
usage = "/echo [Satz]", usage = {"/echo [Satz]","/Echo [Satz]"},
patterns = {"^/echo (.*)$"}, patterns = {"^/echo (.*)$","^/Echo (.*)$"},
run = run run = run
} }

View File

@ -5,9 +5,8 @@ end
return { return {
description = "Sendet alle Emoticons", description = "Sendet alle Emoticons",
usage = "/emoticons", usage = {"/emoticons","/Emoticons"},
patterns = {"^/emoticons", patterns = {"^/emoticons","^/Emoticons"},
"^/Emoticons"},
run = run run = run
} }
--by Akamaru --by Akamaru

View File

@ -3,10 +3,9 @@ function run(msg, matches)
end end
return { return {
description = "Facepalm", description = "Sendet ein Facepalm-Sticker",
usage = "/facepalm", usage = {"/facepalm","/Facepalm"},
patterns = {"^/facepalm", patterns = {"^/facepalm","^/Facepalm"},
"^/Facepalm"},
run = run run = run
} }
--by Akamaru --by Akamaru

View File

@ -70,16 +70,8 @@ end
return { return {
description = "Sucht und sendet ein GIF von Giphy", description = "Sucht und sendet ein GIF von Giphy",
usage = { usage = {"/gif [Begriff]","/giphy [Begriff]"},
"/gif (Begriff)", patterns = {"^/gif$","^/gif (.*)","^/giphy (.*)","^/giphy$"},
"/giphy (Begriff)"
},
patterns = {
"^/gif$",
"^/gif (.*)",
"^/giphy (.*)",
"^/giphy$"
},
run = run run = run
} }

View File

@ -32,10 +32,7 @@ end
return { return {
description = "Durchsucht Google und sendet die ersten 5 Ergebnisse", description = "Durchsucht Google und sendet die ersten 5 Ergebnisse",
usage = "/google [Begriff]", usage = {"/google [Begriff]","/Google [Begriff]"},
patterns = { patterns = {"^/google (.*)$","^/Google (.*)$"},
"^/google (.*)$",
"^%.[g|G]oogle (.*)$"
},
run = run run = run
} }

View File

@ -5,12 +5,9 @@ function run(msg, matches)
end end
return { return {
description = "Sagt hallo zu euch", description = "Miku sagt Hallo zu euch",
usage = "hallo", usage = {"Hallo","hallo"},
patterns = { patterns = {"^Hallo$","^hallo$"},
"^Hallo(.*)$", run = run
"^hallo(.*)$"
},
run = run
} }
--by Akamaru --by Akamaru

View File

@ -19,8 +19,8 @@ end
end end
return { return {
description = "Sendet eins von 4 Katzenbilder", description = "Einfach mal die Fresse halten!",
usage = "/hdf", usage = {"/hdf"},
patterns = {"^/hdf"}, patterns = {"^/hdf"},
run = run run = run
} }

View File

@ -61,13 +61,9 @@ local function run(msg, matches)
end end
return { return {
description = "", description = "Zeigt die Plugins und Befehle",
usage = {""}, usage = {"/hilfe","/hilfe all","/hilfe [Plugin]"},
patterns = { patterns = {"^/hilfe$","^/hilfe all","^/hilfe (.+)"},
"^/hilfe$",
"^/hilfe all",
"^/hilfe (.+)"
},
run = run run = run
} }

View File

@ -8,12 +8,8 @@ end
return { return {
description = "Wenn ein Link zu einem Bild gesendet wird, läd und sendet der Bot das Bild.", description = "Wenn ein Link zu einem Bild gesendet wird, läd und sendet der Bot das Bild.",
usage = "Link zum Bild", usage = {"Link zum Bild"},
patterns = { patterns = {"(https?://[%w-_%.%?%.:/%+=&]+%.png)$","(https?://[%w-_%.%?%.:/%+=&]+%.jpg)$","(https?://[%w-_%.%?%.:/%+=&]+%.jpeg)$",},
"(https?://[%w-_%.%?%.:/%+=&]+%.png)$",
"(https?://[%w-_%.%?%.:/%+=&]+%.jpg)$",
"(https?://[%w-_%.%?%.:/%+=&]+%.jpeg)$",
},
run = run run = run
} }

View File

@ -43,7 +43,7 @@ end
return { return {
description = "Sucht Bild mit Google-API und versendet es (SafeSearch aktiv)", description = "Sucht Bild mit Google-API und versendet es (SafeSearch aktiv)",
usage = "/img [Suchbegriff]", usage = {"/img [Suchbegriff]"},
patterns = {"^/img (.*)$"}, patterns = {"^/img (.*)$"},
run = run run = run
} }

View File

@ -41,10 +41,9 @@ function run(msg, matches)
end end
return { return {
description = "Sucht Bild mit Google-API und versendet es (SafeSearch aktiv)", description = "Sucht Bild mit Google-API und versendet es [NSFW]",
usage = "/img2 [Suchbegriff]", usage = {"/img2 [Suchbegriff]","/nsfwimg [Suchbegriff]"},
patterns = {"^/img2 (.*)$", patterns = {"^/img2 (.*)$","^/nsfwimg (.*)$"},
"^/nsfwimg (.*)$"},
run = run run = run
} }

View File

@ -17,7 +17,7 @@ end
return { return {
description = "Sendet eins von 6 Just Kitten Bilder", description = "Sendet eins von 6 Just Kitten Bilder",
usage = "/jk", usage = {"/jk"},
patterns = {"^/jk"}, patterns = {"^/jk"},
run = run run = run
} }

View File

@ -13,12 +13,8 @@ end
return { return {
description = "Sendet eins von 4 Katzenbilder", description = "Sendet eins von 4 Katzenbilder",
usage = "/kitty", usage = {"/kitty","/katze","/cat","/neko","/kadse"},
patterns = {"^/kitty", patterns = {"^/kitty$","^/katze$","^/cat$","^/neko$","^/kadse$"},
"^/katze",
"^/cat",
"^/neko",
"^/kadse"},
run = run run = run
} }
--by Akamaru --by Akamaru

View File

@ -19,15 +19,8 @@ end
return { return {
description = "Sendet ein Bild von den Lucky Star Chars", description = "Sendet ein Bild von den Lucky Star Chars",
usage = "/kagami, /konata, /tsukasa oder /miyuki", usage = {"/Kagami","/kagami","/Konata","/konata","/Tsukasa","/tsukasa","/Miyuki","/miyuki"},
patterns = {"^/kagami", patterns = {"^/kagami$","^/Kagami$","^/konata$","^/Konata$","^/miyuki$","^/Miyuki$","^/tsukasa$","^/Tsukasa$"},
"^/Kagami",
"^/konata",
"^/Konata",
"^/miyuki",
"^/Miyuki",
"^/tsukasa",
"^/Tsukasa"},
run = run run = run
} }
--by Akamaru --by Akamaru

View File

@ -39,7 +39,7 @@ end
return { return {
description = "Liedertext bekommen", description = "Liedertext bekommen",
usage = "/lyrics [Lied]", usage = {"/lyrics [Lied]"},
patterns = {"^/lyrics (.*)$"}, patterns = {"^/lyrics (.*)$"},
run = run run = run
} }

View File

@ -8,13 +8,8 @@ end
return { return {
description = "Beantwortet euch eine Frage (100% Wahrheit!)", description = "Beantwortet euch eine Frage (100% Wahrheit!)",
usage = "Magische Miesmuschel [Frage]", usage = {"Magische Miesmuschel [Frage]","magische Miesmuschel [Frage]","Magische miesmuschel [Frage]","magische miesmuschel [Frage]"},
patterns = { patterns = {"^Magische Miesmuschel(.*)$","^magische Miesmuschel(.*)$","^Magische miesmuschel(.*)$","^magische miesmuschel(.*)$"},
"^Magische Miesmuschel(.*)$",
"^magische Miesmuschel(.*)$",
"^Magische miesmuschel(.*)$",
"^magische miesmuschel(.*)$"
},
run = run run = run
} }
end end

View File

@ -39,7 +39,7 @@ end
return { return {
description = "Wenn ein User eine Medien-Datei sendet (gif, mp4, pdf, etc.), wird es gedownloadet und gesendet.", description = "Wenn ein User eine Medien-Datei sendet (gif, mp4, pdf, etc.), wird es gedownloadet und gesendet.",
usage = "", usage = {"Irgendeine Datei"},
patterns = { patterns = {
"(https?://[%w-_%.%?%.:/%+=&]+%.(gif))$", "(https?://[%w-_%.%?%.:/%+=&]+%.(gif))$",
"(https?://[%w-_%.%?%.:/%+=&]+%.(mp4))$", "(https?://[%w-_%.%?%.:/%+=&]+%.(mp4))$",

View File

@ -32,8 +32,8 @@ local function pre_process(msg)
end end
return { return {
description = "When bot receives a media msg, download the media.", description = "Wenn eine Datei gesendet wird, läd Mikubot sie runter.",
usage = "", usage = {"Irgendeine Datei"},
run = run, run = run,
patterns = { patterns = {
'%[(document)%]', '%[(document)%]',

View File

@ -5,11 +5,8 @@ end
return { return {
description = "Möpse? Meepse?", description = "Möpse? Meepse?",
usage = "möp oder meep", usage = {"möp","Möp","meep","Meep"},
patterns = {"^möp", patterns = {"^möp","Möp","meep","Meep"},
"Möp",
"meep",
"Meep"},
run = run run = run
} }
--by Akamaru --by Akamaru

View File

@ -4,7 +4,7 @@ end
return { return {
description = 'Zeigt deine Telegram ID', description = 'Zeigt deine Telegram ID',
usage = '/myid', usage = {"/myid"},
patterns = {'^/myid$'}, patterns = {'^/myid$'},
run = run run = run
} }

View File

@ -4,9 +4,8 @@ end
return { return {
description = "Naira Derp", description = "Naira Derp",
usage = "/nairad", usage = {"/nairad","/Nairad"},
patterns = {"^/nairad", patterns = {"^/nairad","^/Nairad"},
"^/Nairad"},
run = run run = run
} }
--by Akamaru --by Akamaru

View File

@ -4,7 +4,7 @@ end
return { return {
description = "RTL Nau", description = "RTL Nau",
usage = "/nau", usage = {"/nau"},
patterns = {"^/nau"}, patterns = {"^/nau"},
run = run run = run
} }

View File

@ -4,7 +4,7 @@ end
return { return {
description = "NeoRame is best pony!", description = "NeoRame is best pony!",
usage = "/neorame", usage = {"/neorame"},
patterns = {"^/neorame"}, patterns = {"^/neorame"},
run = run run = run
} }

View File

@ -4,11 +4,8 @@ end
return { return {
description = "Nii-san <3", description = "Nii-san <3",
usage = "nii-san, Nii-san, nissan oder Nissan", usage = {"nii-san","Nii-san","nissan","Nissan"},
patterns = {"^nii-san", patterns = {"^nii-san","^Nii-san","^nissan","^Nissan"},
"^Nii-san",
"^nissan",
"^Nissan"},
run = run run = run
} }
--by Akamaru --by Akamaru

View File

@ -1,11 +1,12 @@
function run(msg, matches) function run(msg, matches)
return 'https://www.youtube.com/watch?v=gvdf5n-zI14' send_video(get_receiver(msg), "videos/nope.avi", ok_cb, false)
return 'Video wird gesendet...'
end end
return { return {
description = 'Sendet ein YouTube Video namens "nope.avi"', description = 'Sendet ein Video namens "nope.avi"',
usage = "nope.avi", usage = {"nope.avi"},
patterns = {"^nope.avi"}, patterns = {"^nope.avi"},
run = run run = run
} }

View File

@ -4,9 +4,8 @@ end
return { return {
description = "Nyu?", description = "Nyu?",
usage = "nyu", usage = {"nyu","Nyu"},
patterns = {"^nyu", patterns = {"^nyu","^Nyu"},
"^Nyu"},
run = run run = run
} }
--by Akamaru --by Akamaru

View File

@ -162,15 +162,9 @@ local function run(msg, matches)
end end
return { return {
description = "", description = "Plugin Verwaltung",
usage = { "" }, usage = { "Das kann nur Akamaru" },
patterns = { patterns = {"^/plugins$","^/plugins? (enable) ([%w_%.%-]+)$","^/plugins? (disable) ([%w_%.%-]+)$","^/plugins? (enable) ([%w_%.%-]+) (chat)","^/plugins? (disable) ([%w_%.%-]+) (chat)","^/plugins? (reload)$" },
"^/plugins$",
"^/plugins? (enable) ([%w_%.%-]+)$",
"^/plugins? (disable) ([%w_%.%-]+)$",
"^/plugins? (enable) ([%w_%.%-]+) (chat)",
"^/plugins? (disable) ([%w_%.%-]+) (chat)",
"^/plugins? (reload)$" },
run = run, run = run,
privileged = true privileged = true
} }

View File

@ -42,8 +42,7 @@ end
return { return {
description = "Sendet ein PornHub Video", description = "Sendet ein PornHub Video",
usage = "/pornhub", usage = {"/pornhub [Suchwort]","/ph [Suchwort]"},
patterns = {"^/pornhub (.*)$", patterns = {"^/pornhub (.*)$","^/ph (.*)$"},
"^/ph (.*)$"},
run = run run = run
} }

View File

@ -6,7 +6,7 @@ end
return { return {
description = "Ein simpler Taschenrechner", description = "Ein simpler Taschenrechner",
usage = "/calc [Rechnung]", usage = {"/calc [Rechnung]"},
patterns = {"^/calc (.*)$"}, patterns = {"^/calc (.*)$"},
run = run run = run
} }

View File

@ -5,12 +5,8 @@ end
return { return {
description = "Sagt euch dass Akamaru nicht reich ist", description = "Sagt euch dass Akamaru nicht reich ist",
usage = "rich bitch", usage = {"Rich Bitch","rich bitch","rich Bitch","Rich bitch","RICH BITCH"},
patterns = {"^Rich Bitch", patterns = {"^Rich Bitch","^rich bitch","^rich Bitch","^Rich bitch","^RICH BITCH"},
"^rich bitch",
"^rich Bitch",
"^Rich bitch",
"^RICH BITCH"},
run = run run = run
} }
--by Akamaru --by Akamaru

View File

@ -30,22 +30,9 @@ function run(msg, matches)
end end
return { return {
description = "", description = "Sendet euch ein Char aus Sakurasou no Pet na Kanojo",
usage = "", usage = {"/shiina","/Shiina","/chihiro","/Chihiro","/jin","/Jin","/misaki","/Misaki","/nanami","/Nanami","/ryuunosuke","/Ryuunosuke","/sorata","/Sorata"},
patterns = {"^/shiina", patterns = {"^/shiina","^/Shiina","^/chihiro","^/Chihiro","^/jin","^/Jin","^/misaki","^/Misaki","^/nanami","^/Nanami","^/ryuunosuke","^/Ryuunosuke","^/sorata","^/Sorata"},
"^/Shiina",
"^/chihiro",
"^/Chihiro",
"^/jin",
"^/Jin",
"^/misaki",
"^/Misaki",
"^/nanami",
"^/Nanami",
"^/ryuunosuke",
"^/Ryuunosuke",
"^/sorata",
"^/Sorata"},
run = run run = run
} }
--by Akamaru --by Akamaru

View File

@ -39,11 +39,8 @@ end
return { return {
description = "Sucht YouTube-Video und sendet es", description = "Sucht YouTube-Video und sendet es",
usage = "/youtube [Suchbegriff]", usage = {"/youtube [Suchbegriff]","/yt [Suchbegriff]"},
patterns = { patterns = {"^/youtube","^/yt"},
"^/youtube",
"^/yt"
},
run = run run = run
} }

View File

@ -42,28 +42,9 @@ function run(msg, matches)
end end
return { return {
description = "", description = "Sendet euch ein Senran Kagura Char",
usage = "", usage = {"/asuka","/Asuka","/hibari","/Hibari","/ikaruga","/Ikaruga","/katsuragi","/Katsuragi","/yagyuu","/Yagyuu","/haruka","/Haruka","/hikage","/Hikage","/homura","/Homura","/mirai","/Mirai","/yomi","/Yomi"},
patterns = {"^/asuka", patterns = {"^/asuka","^/Asuka","^/hibari","^/Hibari","^/ikaruga","^/Ikaruga","^/katsuragi","^/Katsuragi","^/yagyuu","^/Yagyuu","^/haruka","^/Haruka","^/hikage","^/Hikage","^/homura","^/Homura","^/mirai","^/Mirai","^/yomi","^/Yomi"},
"^/Asuka",
"^/hibari",
"^/Hibari",
"^/ikaruga",
"^/Ikaruga",
"^/katsuragi",
"^/Katsuragi",
"^/yagyuu",
"^/Yagyuu",
"^/haruka",
"^/Haruka",
"^/hikage",
"^/Hikage",
"^/homura",
"^/Homura",
"^/mirai",
"^/Mirai",
"^/yomi",
"^/Yomi"},
run = run run = run
} }
--by Akamaru --by Akamaru

View File

@ -32,7 +32,7 @@ end
return { return {
description = "Führt Befehle in der Konsole aus", description = "Führt Befehle in der Konsole aus",
usage = "", usage = {"Das kann nur Akamaru"},
patterns = {"^/uptime", "^/sh (.*)$"}, patterns = {"^/uptime", "^/sh (.*)$"},
run = run, run = run,
privileged = true privileged = true

View File

@ -105,12 +105,9 @@ end
_stats = read_file_stats() _stats = read_file_stats()
return { return {
description = "", description = "Zeigt wieviel ihr spamt",
usage = "", usage = {"/stats"},
patterns = { patterns = {"^/(stats)",},
"^/(stats)",
".*"
},
run = run, run = run,
cron = save_stats cron = save_stats
} }

View File

@ -68,10 +68,8 @@ end
return { return {
description = "Grabs Steam info for Steam links.", description = "Grabs Steam info for Steam links.",
usage = "", usage = {"store.steampowered.com Link"},
patterns = { patterns = {"http://store.steampowered.com/app/([0-9]+)",},
"http://store.steampowered.com/app/([0-9]+)",
},
run = run run = run
} }

View File

@ -12,11 +12,8 @@ end
return { return {
description = "Es ist so still hier", description = "Es ist so still hier",
usage = "stille", usage = {"Stille","stille","*stille*","*Stille*"},
patterns = {"^Stille", patterns = {"^Stille","^stille","^*stille*","^*Stille*"},
"^stille",
"^*stille*",
"^*Stille*"},
run = run run = run
} }
end end

View File

@ -67,12 +67,8 @@ end
return { return {
description = "Übersetze Text", description = "Übersetze Text",
usage = "/translate [Text]", usage = {"/translate [Text]"},
patterns = { patterns = {"^/translate ([%w]+),([%a]+) (.+)","^/translate ([%w]+) (.+)","^/translate (.+)",},
"^/translate ([%w]+),([%a]+) (.+)",
"^/translate ([%w]+) (.+)",
"^/translate (.+)",
},
run = run run = run
} }

View File

@ -33,7 +33,7 @@ end
return { return {
description = "Zeigt eine Urban Dictionary Definition", description = "Zeigt eine Urban Dictionary Definition",
usage = "/ud [topic]", usage = {"/ud [Begriff]"},
patterns = {"^/ud (.*)$"}, patterns = {"^/ud (.*)$"},
run = run run = run
} }

View File

@ -28,7 +28,7 @@ function run(msg, matches)
local title = getTitle(result) local title = getTitle(result)
--Ignoring 301, 302, 404 and more --Ignoring 301, 302, 404 and more
if title == "301 Moved Permanently" or if title == "301 Moved Permanently" or
title == "" or title == "" or
title == "404 Not Found" or title == "404 Not Found" or
title == "302 Found" or title == "302 Found" or
@ -38,7 +38,7 @@ function run(msg, matches)
string.match(title, "deviantArt") or string.match(title, "deviantArt") or
string.match(title, "twitch") or string.match(title, "twitch") or
string.match(title, "eBay</title>") or string.match(title, "eBay</title>") or
string.match(title, "Twitch</title>") then string.match(title, "Twitch") then
print('Invalide, da "'..title..'"') print('Invalide, da "'..title..'"')
else else
return title return title
@ -47,7 +47,7 @@ function run(msg, matches)
return { return {
description = "Postet URL-Titel", description = "Postet URL-Titel",
usage = "Irgendein Link", usage = {"Irgendein Link"},
patterns = {"^(https?://[%w-_%.%?%.:,/%+=&]+)$",}, patterns = {"^(https?://[%w-_%.%?%.:,/%+=&]+)$",},
run = run run = run
} }

View File

@ -6,10 +6,8 @@ end
return { return {
description = "Zeigt die Bot Version", description = "Zeigt die Bot Version",
usage = "/version", usage = {"/version","/v"},
patterns = { patterns = {"^/version$","^/v$"},
"^/version$"
},
run = run run = run
} }
end end

View File

@ -33,7 +33,7 @@ function run(msg, matches)
local url = getWallpaper(text) local url = getWallpaper(text)
if not url then if not url then
return "Kein Bild gefunden." return "Kein Wallpaper gefunden."
end end
print("Bilder-URL: ", url) print("Bilder-URL: ", url)
@ -42,9 +42,10 @@ function run(msg, matches)
end end
return { return {
description = "Sucht Bild mit Google-API und versendet es (SafeSearch aktiv)", description = "Sucht Wallpaper mit Google und versendet es (SafeSearch aktiv)",
usage = "/wallpaper [Suchbegriff]", usage = {"/wallpaper [Suchbegriff]","/wp [Suchbegriff]"},
patterns = {"^/wallpaper (.*)$","^/wp (.*)$"}, patterns = {"^/wallpaper (.*)$","^/wp (.*)$"},
run = run run = run
} }
end end
-- Original by yagop ; Modified by Akamaru

View File

@ -1,4 +1,3 @@
do do
function getWallpaper2(text) function getWallpaper2(text)
@ -33,7 +32,7 @@ function run(msg, matches)
local url = getWallpaper2(text) local url = getWallpaper2(text)
if not url then if not url then
return "Kein Bild gefunden." return "Kein Wallpaper gefunden."
end end
print("Bilder-URL: ", url) print("Bilder-URL: ", url)
@ -42,9 +41,10 @@ function run(msg, matches)
end end
return { return {
description = "Sucht Bild mit Google-API und versendet es", description = "Sucht Wallpaper mit Google und versendet es [NSFW]",
usage = "/wallpaper2 [Suchbegriff]", usage = {"/wallpaper2 [Suchbegriff]","/wp2 [Suchbegriff]"},
patterns = {"^/wallpaper2 (.*)$","^/wp2 (.*)$"}, patterns = {"^/wallpaper2 (.*)$","^/wp2 (.*)$"},
run = run run = run
} }
end end
-- Original by yagop ; Modified by Akamaru

View File

@ -5,7 +5,7 @@ end
return { return {
description = "Sagt dass ihr wieder da seid", description = "Sagt dass ihr wieder da seid",
usage = "/wd", usage = {"/wd"},
patterns = {"^/wd(.*)$"}, patterns = {"^/wd(.*)$"},
run = run run = run
} }

View File

@ -60,11 +60,7 @@ end
return { return {
description = "Sendet einen Wikipedia-Artikel", description = "Sendet einen Wikipedia-Artikel",
usage = "/wiki Suchwort", usage = {"/wiki [Suchwort]","de.wikipedia.org Link"},
patterns = { patterns = {"^/wiki (.*)$","^%.[w|W]iki (.*)$","de.wikipedia.org/wiki/([A-Za-z0-9-_-]+)"},
"^/wiki (.*)$",
"^%.[w|W]iki (.*)$",
"de.wikipedia.org/wiki/([A-Za-z0-9-_-]+)"
},
run = run run = run
} }

View File

@ -7,7 +7,7 @@ end
return { return {
description = "Würfel eine Zahl zwischen 1 bis 6", description = "Würfel eine Zahl zwischen 1 bis 6",
usage = "/würfel", usage = {"/würfel"},
patterns = {"^/würfel"}, patterns = {"^/würfel"},
run = run run = run
} }

View File

@ -47,11 +47,7 @@ end
return { return {
description = "Sendet Comics von xkcd", description = "Sendet Comics von xkcd",
usage = {"/xkcd"}, usage = {"/xkcd"},
patterns = { patterns = {"^/xkcd$","^/xkcd (%d+)","xkcd.com/(%d+)"},
"^/xkcd$",
"^/xkcd (%d+)",
"xkcd.com/(%d+)"
},
run = run run = run
} }

View File

@ -5,7 +5,7 @@ end
return { return {
description = "Sendet euch ein Hä YOLO?", description = "Sendet euch ein Hä YOLO?",
usage = "/yolo", usage = {"/yolo"},
patterns = {"^/yolo"}, patterns = {"^/yolo"},
run = run run = run
} }

View File

@ -42,8 +42,7 @@ end
return { return {
description = "Sendet ein YouPorn Video", description = "Sendet ein YouPorn Video",
usage = "/youporn", usage = {"/youporn","/yp"},
patterns = {"^/youporn (.*)$", patterns = {"^/youporn (.*)$","^/yp (.*)$"},
"^/yp (.*)$"},
run = run run = run
} }