many code cleanup in plugins
This commit is contained in:
parent
1c93a20e11
commit
4021a1c84d
@ -1,13 +1,13 @@
|
||||
function run(msg, matches)
|
||||
--get username
|
||||
local user_name = get_name(msg)
|
||||
return "" .. user_name .. " ist nun AFK"
|
||||
return '' .. user_name .. ' ist nun AFK'
|
||||
end
|
||||
|
||||
return {
|
||||
description = "Sagt dass ihr afk seid",
|
||||
usage = "/afk",
|
||||
patterns = {
|
||||
"^/afk(.*)$"
|
||||
},
|
||||
patterns = {"^/afk(.*)$"},
|
||||
run = run
|
||||
}
|
||||
--by Akamaru
|
@ -1,8 +1,5 @@
|
||||
function run(msg, matches)
|
||||
|
||||
if string.starts(msg.text, "aha.png") then
|
||||
send_photo(get_receiver(msg), "pictures/aha.png", ok_cb, false)
|
||||
end
|
||||
send_photo(get_receiver(msg), "pictures/aha.png", ok_cb, false)
|
||||
end
|
||||
|
||||
return {
|
||||
@ -10,4 +7,5 @@ return {
|
||||
usage = "aha.png",
|
||||
patterns = {"^aha.png"},
|
||||
run = run
|
||||
}
|
||||
}
|
||||
--by Akamaru
|
@ -1,11 +1,11 @@
|
||||
|
||||
function run(msg, matches)
|
||||
return "Gomen'nasai 😣"
|
||||
end
|
||||
end
|
||||
|
||||
return {
|
||||
description = "",
|
||||
usage = "",
|
||||
description = "So ein dummer Bot",
|
||||
usage = "Baka Bot",
|
||||
patterns = {"^baka bot",
|
||||
"Baka bot",
|
||||
"baka Bot",
|
||||
@ -13,3 +13,4 @@ return {
|
||||
"BAKA BOT"},
|
||||
run = run
|
||||
}
|
||||
--by Akamaru
|
@ -1,15 +1,13 @@
|
||||
function run(msg, matches)
|
||||
|
||||
if string.starts(msg.text, '/barusamiko') or string.starts(msg.text, "/barusamikosu") or string.starts(msg.text, "/Balsamiko Essig") then
|
||||
send_photo(get_receiver(msg), "pictures/luckystar/barusamikosu.jpg", ok_cb, false)
|
||||
end
|
||||
send_photo(get_receiver(msg), "pictures/luckystar/barusamikosu.jpg", ok_cb, false)
|
||||
end
|
||||
|
||||
return {
|
||||
description = "Balsamiko Essig!",
|
||||
usage = "/barusamiko",
|
||||
patterns = {"^/barusamiko",
|
||||
"^/barusamikosu",
|
||||
"^/Balsamiko Essig"},
|
||||
"^/barusamikosu",
|
||||
"^/Balsamiko Essig"},
|
||||
run = run
|
||||
}
|
||||
}
|
||||
--by Akamaru
|
@ -16,7 +16,7 @@ function cron()
|
||||
end
|
||||
|
||||
return {
|
||||
description = "",
|
||||
description = "Checkt ob Boerse.to online ist",
|
||||
usage = "",
|
||||
patterns = {},
|
||||
run = nil,
|
||||
|
@ -14,7 +14,7 @@ function run(msg, matches)
|
||||
end
|
||||
|
||||
return {
|
||||
description = "get chuck norris joke",
|
||||
description = "Sendet Chuck Norris Witze (Englisch)",
|
||||
usage = "/cn",
|
||||
patterns = {"^/cn$"},
|
||||
run = run
|
||||
|
@ -1,14 +1,13 @@
|
||||
|
||||
function run(msg, matches)
|
||||
if matches[1] == "/emoticons" then
|
||||
return '😄😃😀😊☺️😉😍😘😚😗😙😜😝😛😳😁😔😌😒😞😣😢😂😭😪😥😰😅😓😩😫😨😱😠😡😤😖😆😋😷😎😴😵😲😟😦😧😈👿😮😬😐😕😯😶😇😏😑👲👳👮👷💂👶👦👧👨👩👴👵👱👼👸😺😸😻😽😼🙀😿😹😾👹👺🙈🙉🙊💀👽💩🔥✨🌟💫💥💢💦💧💤💨👂👀👃👅👄👍👎👌👊✊✌️👋✋👐👆👇👉👈🙌🙏☝️👏💪🚶🏃💃👫👪👬👭💏💑👯🙆🙅💁🙋💆💇💅👰🙎🙍🙇🎩👑👒👟👞👡👠👢👕👔👚👗🎽👖👘👙💼👜👝👛👓🎀🌂💄💛💙💜💚❤️💔💗💓💕💖💞💘💌💋💍💎👤👥💬👣💭🐶🐺🐱🐭🐹🐰🐸🐯🐨🐻🐷🐽🐮🐗🐵🐒🐴🐑🐘🐼🐧🐦🐤🐥🐣🐔🐍🐢🐛🐝🐜🐞🐌🐙🐚🐠🐟🐬🐳🐋🐄🐏🐀🐃🐅🐇🐉🐎🐐🐓🐕🐖🐁🐂🐲🐡🐊🐫🐪🐆🐈🐩🐾💐🌸🌷🍀🌹🌻🌺🍁🍃🍂🌿🌾🍄🌵🌴🌲🌳🌰🌱🌼🌐🌞🌝🌚🌑🌒🌓🌔🌕🌖🌗🌘🌜🌛🌙🌍🌎🌏🌋🌌🌠⭐️☀️⛅️☁️⚡️☔️❄️⛄️🌀🌁🌈🌊🎍💝🎎🎒🎓🎏🎆🎇🎐🎑🎃👻🎅🎄🎁🎋🎉🎊🎈🎌🔮🎥📷📹📼💿📀💽💾💻📱☎️📞📟📠📡📺📻🔊🔉🔈🔇🔔🔕📢📣⏳⌛️⏰⌚️🔓🔒🔏🔐🔑🔎💡🔦🔆🔅🔌🔋🔍🛁🛀🚿🚽🔧🔩🔨🚪🚬💣🔫🔪💊💉💰💴💵💷💶💳💸📲📧📥📤✉️📩📨📯📫📪📬📭📮📦📝📄📃📑📊📈📉📜📋📅📆📇📁📂✂️📌📎✒️✏️📏📐📕📗📘📙📓📔📒📚📖🔖📛🔬🔭📰🎨🎬🎤🎧🎼🎵🎶🎹🎻🎺🎷🎸👾🎮🃏🎴🀄️🎲🎯🏈🏀⚽️⚾️🎾🎱🏉🎳⛳️🚵🚴🏁🏇🏆🎿🏂🏊🏄🎣☕️🍵🍶🍼🍺🍻🍸🍹🍷🍴🍕🍔🍟🍗🍖🍝🍛🍤🍱🍣🍥🍙🍘🍚🍜🍲🍢🍡🍳🍞🍩🍮🍦🍨🍧🎂🍰🍪🍫🍬🍭🍯🍎🍏🍊🍋🍒🍇🍉🍓🍑🍈🍌🍐🍍🍠🍆🍅🌽🏠🏡🏫🏢🏣🏥🏦🏪🏩🏨💒⛪️🏬🏤🌇🌆🏯🏰⛺️🏭🗼🗾🗻🌄🌅🌃🗽🌉🎠🎡⛲️🎢🚢⛵️🚤🚣⚓️🚀✈️💺🚁🚂🚊🚉🚞🚆🚄🚅🚈🚇🚝🚋🚃🚎🚌🚍🚙🚘🚗🚕🚖🚛🚚🚨🚓🚔🚒🚑🚐🚲🚡🚟🚠🚜💈🚏🎫🚦🚥⚠️🚧🔰⛽️🏮🎰♨️🗿🎪🎭📍🚩🇯🇵🇰🇷🇩🇪🇨🇳🇺🇸🇫🇷🇪🇸🇮🇹🇷🇺🇬🇧1⃣2⃣3⃣4⃣5⃣6⃣7⃣8⃣9⃣0⃣🔟🔢#⃣🔣⬆️⬇️⬅️➡️🔠🔡🔤↗️↖️↘️↙️↔️↕️🔄◀️▶️🔼🔽↩️↪️ℹ️⏪⏩⏫⏬⤵️⤴️🆗🔀🔁🔂🆕🆙🆒🆓🆖📶🎦🈁🈯️🈳🈵🈴🈲🉐🈹🈺🈶🈚️🚻🚹🚺🚼🚾🚰🚮🅿️♿️🚭🈷🈸🈂Ⓜ️🛂🛄🛅🛃🉑㊙️㊗️🆑🆘🆔🚫🔞📵🚯🚱🚳🚷🚸⛔️✳️❇️❎✅✴️💟🆚📳📴🅰🅱🆎🅾💠➿♻️♈️♉️♊️♋️♌️♍️♎️♏️♐️♑️♒️♓️⛎🔯🏧💹💲💱©®™❌‼️⁉️❗️❓❕❔⭕️🔝🔚🔙🔛🔜🔃🕛🕧🕐🕜🕑🕝🕒🕞🕓🕟🕔🕠🕕🕖🕗🕘🕙🕚🕡🕢🕣🕤🕥🕦✖️➕➖➗♠️♥️♣️♦️💮💯✔️☑️🔘🔗➰〰〽️🔱◼️◻️◾️◽️▪️▫️🔺🔲🔳⚫️⚪️🔴🔵🔻⬜️⬛️🔶🔷🔸🔹'
|
||||
end
|
||||
|
||||
return '😄😃😀😊☺️😉😍😘😚😗😙😜😝😛😳😁😔😌😒😞😣😢😂😭😪😥😰😅😓😩😫😨😱😠😡😤😖😆😋😷😎😴😵😲😟😦😧😈👿😮😬😐😕😯😶😇😏😑👲👳👮👷💂👶👦👧👨👩👴👵👱👼👸😺😸😻😽😼🙀😿😹😾👹👺🙈🙉🙊💀👽💩🔥✨🌟💫💥💢💦💧💤💨👂👀👃👅👄👍👎👌👊✊✌️👋✋👐👆👇👉👈🙌🙏☝️👏💪🚶🏃💃👫👪👬👭💏💑👯🙆🙅💁🙋💆💇💅👰🙎🙍🙇🎩👑👒👟👞👡👠👢👕👔👚👗🎽👖👘👙💼👜👝👛👓🎀🌂💄💛💙💜💚❤️💔💗💓💕💖💞💘💌💋💍💎👤👥💬👣💭🐶🐺🐱🐭🐹🐰🐸🐯🐨🐻🐷🐽🐮🐗🐵🐒🐴🐑🐘🐼🐧🐦🐤🐥🐣🐔🐍🐢🐛🐝🐜🐞🐌🐙🐚🐠🐟🐬🐳🐋🐄🐏🐀🐃🐅🐇🐉🐎🐐🐓🐕🐖🐁🐂🐲🐡🐊🐫🐪🐆🐈🐩🐾💐🌸🌷🍀🌹🌻🌺🍁🍃🍂🌿🌾🍄🌵🌴🌲🌳🌰🌱🌼🌐🌞🌝🌚🌑🌒🌓🌔🌕🌖🌗🌘🌜🌛🌙🌍🌎🌏🌋🌌🌠⭐️☀️⛅️☁️⚡️☔️❄️⛄️🌀🌁🌈🌊🎍💝🎎🎒🎓🎏🎆🎇🎐🎑🎃👻🎅🎄🎁🎋🎉🎊🎈🎌🔮🎥📷📹📼💿📀💽💾💻📱☎️📞📟📠📡📺📻🔊🔉🔈🔇🔔🔕📢📣⏳⌛️⏰⌚️🔓🔒🔏🔐🔑🔎💡🔦🔆🔅🔌🔋🔍🛁🛀🚿🚽🔧🔩🔨🚪🚬💣🔫🔪💊💉💰💴💵💷💶💳💸📲📧📥📤✉️📩📨📯📫📪📬📭📮📦📝📄📃📑📊📈📉📜📋📅📆📇📁📂✂️📌📎✒️✏️📏📐📕📗📘📙📓📔📒📚📖🔖📛🔬🔭📰🎨🎬🎤🎧🎼🎵🎶🎹🎻🎺🎷🎸👾🎮🃏🎴🀄️🎲🎯🏈🏀⚽️⚾️🎾🎱🏉🎳⛳️🚵🚴🏁🏇🏆🎿🏂🏊🏄🎣☕️🍵🍶🍼🍺🍻🍸🍹🍷🍴🍕🍔🍟🍗🍖🍝🍛🍤🍱🍣🍥🍙🍘🍚🍜🍲🍢🍡🍳🍞🍩🍮🍦🍨🍧🎂🍰🍪🍫🍬🍭🍯🍎🍏🍊🍋🍒🍇🍉🍓🍑🍈🍌🍐🍍🍠🍆🍅🌽🏠🏡🏫🏢🏣🏥🏦🏪🏩🏨💒⛪️🏬🏤🌇🌆🏯🏰⛺️🏭🗼🗾🗻🌄🌅🌃🗽🌉🎠🎡⛲️🎢🚢⛵️🚤🚣⚓️🚀✈️💺🚁🚂🚊🚉🚞🚆🚄🚅🚈🚇🚝🚋🚃🚎🚌🚍🚙🚘🚗🚕🚖🚛🚚🚨🚓🚔🚒🚑🚐🚲🚡🚟🚠🚜💈🚏🎫🚦🚥⚠️🚧🔰⛽️🏮🎰♨️🗿🎪🎭📍🚩🇯🇵🇰🇷🇩🇪🇨🇳🇺🇸🇫🇷🇪🇸🇮🇹🇷🇺🇬🇧1⃣2⃣3⃣4⃣5⃣6⃣7⃣8⃣9⃣0⃣🔟🔢#⃣🔣⬆️⬇️⬅️➡️🔠🔡🔤↗️↖️↘️↙️↔️↕️🔄◀️▶️🔼🔽↩️↪️ℹ️⏪⏩⏫⏬⤵️⤴️🆗🔀🔁🔂🆕🆙🆒🆓🆖📶🎦🈁🈯️🈳🈵🈴🈲🉐🈹🈺🈶🈚️🚻🚹🚺🚼🚾🚰🚮🅿️♿️🚭🈷🈸🈂Ⓜ️🛂🛄🛅🛃🉑㊙️㊗️🆑🆘🆔🚫🔞📵🚯🚱🚳🚷🚸⛔️✳️❇️❎✅✴️💟🆚📳📴🅰🅱🆎🅾💠➿♻️♈️♉️♊️♋️♌️♍️♎️♏️♐️♑️♒️♓️⛎🔯🏧💹💲💱©®™❌‼️⁉️❗️❓❕❔⭕️🔝🔚🔙🔛🔜🔃🕛🕧🕐🕜🕑🕝🕒🕞🕓🕟🕔🕠🕕🕖🕗🕘🕙🕚🕡🕢🕣🕤🕥🕦✖️➕➖➗♠️♥️♣️♦️💮💯✔️☑️🔘🔗➰〰〽️🔱◼️◻️◾️◽️▪️▫️🔺🔲🔳⚫️⚪️🔴🔵🔻⬜️⬛️🔶🔷🔸🔹'
|
||||
end
|
||||
|
||||
return {
|
||||
description = "Sendet alle Emoticons",
|
||||
usage = "/emoticons",
|
||||
patterns = {"^/emoticons"},
|
||||
patterns = {"^/emoticons",
|
||||
"^/Emoticons"},
|
||||
run = run
|
||||
}
|
||||
--by Akamaru
|
@ -8,4 +8,5 @@ return {
|
||||
patterns = {"^/facepalm",
|
||||
"^/Facepalm"},
|
||||
run = run
|
||||
}
|
||||
}
|
||||
--by Akamaru
|
@ -1,7 +1,7 @@
|
||||
function run(msg, matches)
|
||||
local user_name = get_name(msg)
|
||||
local receiver = get_receiver(msg)
|
||||
return "Hallo " .. user_name .. "!"
|
||||
local receiver = get_receiver(msg)
|
||||
return "Hallo " .. user_name .. "!"
|
||||
end
|
||||
|
||||
return {
|
||||
@ -13,3 +13,4 @@ return {
|
||||
},
|
||||
run = run
|
||||
}
|
||||
--by Akamaru
|
@ -7,8 +7,8 @@ function run(msg, matches)
|
||||
end
|
||||
|
||||
return {
|
||||
description = "When user sends image URL (ends with png, jpg, jpeg) download and send it to origin.",
|
||||
usage = "",
|
||||
description = "Wenn ein Link zu einem Bild gesendet wird, läd und sendet der Bot das Bild.",
|
||||
usage = "Link zum Bild",
|
||||
patterns = {
|
||||
"(https?://[%w-_%.%?%.:/%+=&]+%.png)$",
|
||||
"(https?://[%w-_%.%?%.:/%+=&]+%.jpg)$",
|
||||
|
@ -1,6 +1,6 @@
|
||||
do
|
||||
|
||||
function getGoogleImage(text)
|
||||
function getGoogleImage2(text)
|
||||
local text = URL.escape(text)
|
||||
local api = "https://ajax.googleapis.com/ajax/services/search/images?v=1.0&rsz=8&q="
|
||||
local res, code = http.request(api..text)
|
||||
@ -29,7 +29,7 @@ end
|
||||
function run(msg, matches)
|
||||
local receiver = get_receiver(msg)
|
||||
local text = matches[1]
|
||||
local url = getGoogleImage(text)
|
||||
local url = getGoogleImage2(text)
|
||||
|
||||
if not url then
|
||||
return "Kein Bild gefunden."
|
||||
|
@ -1,19 +1,18 @@
|
||||
function run(msg, matches)
|
||||
|
||||
randomValue = math.random(6)
|
||||
if randomValue == 1 then
|
||||
if randomValue == 1 then
|
||||
send_photo(get_receiver(msg), "pictures/justkitten/justkitten1.jpg", ok_cb, false)
|
||||
elseif randomValue == 2 then
|
||||
elseif randomValue == 2 then
|
||||
send_photo(get_receiver(msg), "pictures/justkitten/justkitten2.jpg", ok_cb, false)
|
||||
elseif randomValue == 3 then
|
||||
elseif randomValue == 3 then
|
||||
send_photo(get_receiver(msg), "pictures/justkitten/justkitten3.jpg", ok_cb, false)
|
||||
elseif randomValue == 4 then
|
||||
elseif randomValue == 4 then
|
||||
send_photo(get_receiver(msg), "pictures/justkitten/justkitten4.jpg", ok_cb, false)
|
||||
elseif randomValue == 5 then
|
||||
elseif randomValue == 5 then
|
||||
send_photo(get_receiver(msg), "pictures/justkitten/justkitten5.jpg", ok_cb, false)
|
||||
elseif randomValue == 6 then
|
||||
elseif randomValue == 6 then
|
||||
send_photo(get_receiver(msg), "pictures/justkitten/justkitten6.jpg", ok_cb, false)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return {
|
||||
@ -21,4 +20,5 @@ return {
|
||||
usage = "/jk",
|
||||
patterns = {"^/jk"},
|
||||
run = run
|
||||
}
|
||||
}
|
||||
--by Akamaru
|
@ -1,15 +1,14 @@
|
||||
function run(msg, matches)
|
||||
|
||||
randomValue = math.random(4)
|
||||
if randomValue == 1 then
|
||||
if randomValue == 1 then
|
||||
send_photo(get_receiver(msg), "pictures/cats/cat1.jpg", ok_cb, false)
|
||||
elseif randomValue == 2 then
|
||||
elseif randomValue == 2 then
|
||||
send_photo(get_receiver(msg), "pictures/cats/cat2.jpg", ok_cb, false)
|
||||
elseif randomValue == 3 then
|
||||
elseif randomValue == 3 then
|
||||
send_photo(get_receiver(msg), "pictures/cats/cat3.jpg", ok_cb, false)
|
||||
elseif randomValue == 4 then
|
||||
elseif randomValue == 4 then
|
||||
send_photo(get_receiver(msg), "pictures/cats/cat4.jpg", ok_cb, false)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return {
|
||||
@ -17,4 +16,5 @@ return {
|
||||
usage = "/kitty",
|
||||
patterns = {"^/kitty"},
|
||||
run = run
|
||||
}
|
||||
}
|
||||
--by Akamaru
|
@ -29,4 +29,5 @@ return {
|
||||
"^/tsukasa",
|
||||
"^/Tsukasa"},
|
||||
run = run
|
||||
}
|
||||
}
|
||||
--by Akamaru
|
@ -31,7 +31,7 @@ end
|
||||
function run(msg, matches)
|
||||
local lyrics = getLyrics(msg.text)
|
||||
if (lyrics == nil) then
|
||||
return "Zzzzz..."
|
||||
return "Nichts gefunden!"
|
||||
else
|
||||
return lyrics
|
||||
end
|
||||
|
@ -17,4 +17,5 @@ return {
|
||||
},
|
||||
run = run
|
||||
}
|
||||
end
|
||||
end
|
||||
--by Akamaru
|
@ -7,8 +7,8 @@ function run(msg, matches)
|
||||
end
|
||||
|
||||
return {
|
||||
description = "When user sends media URL (ends with gif, mp4, pdf, etc.) download and send it to origin.",
|
||||
usage = "",
|
||||
description = "Wenn ein Link zu einer Datei gesendet wird, läd und sendet der Bot die Datei.",
|
||||
usage = "Link zur Datei",
|
||||
patterns = {
|
||||
"(https?://[%w-_%.%?%.:/%+=&]+%.gif)$",
|
||||
"(https?://[%w-_%.%?%.:/%+=&]+%.mp4)$",
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
function run(msg, matches)
|
||||
return 'se'
|
||||
end
|
||||
end
|
||||
|
||||
return {
|
||||
description = "Möpse? Meepse?",
|
||||
@ -12,4 +12,4 @@ return {
|
||||
"Meep"},
|
||||
run = run
|
||||
}
|
||||
|
||||
--by Akamaru
|
@ -8,4 +8,5 @@ return {
|
||||
patterns = {"^/nairad",
|
||||
"^/Nairad"},
|
||||
run = run
|
||||
}
|
||||
}
|
||||
--by Akamaru
|
@ -1,8 +1,5 @@
|
||||
function run(msg, matches)
|
||||
|
||||
if string.starts(msg.text, "/nau") then
|
||||
send_photo(get_receiver(msg), "pictures/nau.jpg", ok_cb, false)
|
||||
end
|
||||
send_photo(get_receiver(msg), "pictures/nau.jpg", ok_cb, false)
|
||||
end
|
||||
|
||||
return {
|
||||
@ -10,4 +7,5 @@ return {
|
||||
usage = "/nau",
|
||||
patterns = {"^/nau"},
|
||||
run = run
|
||||
}
|
||||
}
|
||||
--by Akamaru
|
@ -1,8 +1,5 @@
|
||||
function run(msg, matches)
|
||||
|
||||
if string.starts(msg.text, "/neorame") then
|
||||
send_photo(get_receiver(msg), "pictures/neorame.jpg", ok_cb, false)
|
||||
end
|
||||
send_photo(get_receiver(msg), "pictures/neorame.jpg", ok_cb, false)
|
||||
end
|
||||
|
||||
return {
|
||||
@ -10,4 +7,5 @@ return {
|
||||
usage = "/neorame",
|
||||
patterns = {"^/neorame"},
|
||||
run = run
|
||||
}
|
||||
}
|
||||
--by Akamaru
|
@ -1,9 +1,5 @@
|
||||
function run(msg, matches)
|
||||
|
||||
if string.starts(msg.text, 'nii-san') or string.starts(msg.text, 'Nii-san') or string.starts(msg.text, 'Nissan') or string.starts(msg.text, 'nissan') then
|
||||
send_photo(get_receiver(msg), "pictures/Nii-san.jpg", ok_cb, false)
|
||||
end
|
||||
|
||||
send_photo(get_receiver(msg), "pictures/Nii-san.jpg", ok_cb, false)
|
||||
end
|
||||
|
||||
return {
|
||||
@ -15,4 +11,4 @@ return {
|
||||
"^Nissan"},
|
||||
run = run
|
||||
}
|
||||
|
||||
--by Akamaru
|
@ -1,9 +1,6 @@
|
||||
|
||||
function run(msg, matches)
|
||||
if matches[1] == "nope.avi" then
|
||||
return 'https://www.youtube.com/watch?v=gvdf5n-zI14'
|
||||
end
|
||||
|
||||
return 'https://www.youtube.com/watch?v=gvdf5n-zI14'
|
||||
end
|
||||
|
||||
return {
|
||||
@ -12,4 +9,4 @@ return {
|
||||
patterns = {"^nope.avi"},
|
||||
run = run
|
||||
}
|
||||
|
||||
--by Akamaru
|
@ -1,16 +1,12 @@
|
||||
function run(msg, matches)
|
||||
|
||||
if string.starts(msg.text, 'nyu') or string.starts(msg.text, 'Nyu') then
|
||||
send_photo(get_receiver(msg), "pictures/nyu.jpg", ok_cb, false)
|
||||
end
|
||||
|
||||
send_photo(get_receiver(msg), "pictures/nyu.jpg", ok_cb, false)
|
||||
end
|
||||
|
||||
return {
|
||||
description = "Nyu?",
|
||||
usage = "nyu",
|
||||
patterns = {"^nyu",
|
||||
"^Nyu"},
|
||||
"^Nyu"},
|
||||
run = run
|
||||
}
|
||||
|
||||
--by Akamaru
|
@ -6,12 +6,12 @@ function run(msg, matches)
|
||||
-- local new_matches = {query}
|
||||
|
||||
-- return g.run(msg, new_matches)
|
||||
local results = findPorn(matches[1])
|
||||
local results = findPornhub(matches[1])
|
||||
return results-- build_result(results)
|
||||
end
|
||||
|
||||
function findPorn(query)
|
||||
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=site:pornhub.com+viewkey+" .. query:gsub(" ", "+")
|
||||
function findPornhub(query)
|
||||
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=site:pornhub.com+viewkey+" .. query:gsub(" ", "+")
|
||||
|
||||
-- Do the request
|
||||
local res, code = https.request(api)
|
||||
@ -41,7 +41,7 @@ function build_result(query)
|
||||
end
|
||||
|
||||
return {
|
||||
description = "",
|
||||
description = "Sendet ein PornHub Video",
|
||||
usage = "/pornhub",
|
||||
patterns = {"^/pornhub (.*)$",
|
||||
"^/ph (.*)$"},
|
||||
|
@ -7,8 +7,6 @@ end
|
||||
return {
|
||||
description = "Ein simpler Taschenrechner",
|
||||
usage = "/calc [Rechnung]",
|
||||
patterns = {
|
||||
"^/calc (.*)$"
|
||||
},
|
||||
patterns = {"^/calc (.*)$"},
|
||||
run = run
|
||||
}
|
@ -1,12 +1,12 @@
|
||||
function run(msg, matches)
|
||||
plugins = {}
|
||||
load_plugins()
|
||||
return 'Plugins reloaded'
|
||||
return 'Plugins erfolgreich geladen!'
|
||||
end
|
||||
|
||||
return {
|
||||
description = "Reloads Bot Plugins",
|
||||
usage = "/reload",
|
||||
description = "",
|
||||
usage = "",
|
||||
patterns = {"^/reload$"},
|
||||
run = run,
|
||||
privileged = true
|
||||
|
@ -1,9 +1,6 @@
|
||||
|
||||
function run(msg, matches)
|
||||
if matches[1] == "rich bitch" then
|
||||
return 'Akamaru ist nicht reich!'
|
||||
end
|
||||
|
||||
return 'Akamaru ist nicht reich!'
|
||||
end
|
||||
|
||||
return {
|
||||
@ -16,4 +13,4 @@ return {
|
||||
"^RICH BITCH"},
|
||||
run = run
|
||||
}
|
||||
|
||||
--by Akamaru
|
@ -4,27 +4,27 @@ function run(msg, matches)
|
||||
send_photo(get_receiver(msg), "pictures/sakurasou/shiina.jpg", ok_cb, false)
|
||||
end
|
||||
|
||||
if string.starts(msg.text, '/chihiro') or string.starts(msg.text, "/Chihiro") then
|
||||
if string.starts(msg.text, '/chihiro') or string.starts(msg.text, "/Chihiro") then
|
||||
send_photo(get_receiver(msg), "pictures/sakurasou/chihiro.jpg", ok_cb, false)
|
||||
end
|
||||
|
||||
if string.starts(msg.text, '/jin') or string.starts(msg.text, "/Jin") then
|
||||
if string.starts(msg.text, '/jin') or string.starts(msg.text, "/Jin") then
|
||||
send_photo(get_receiver(msg), "pictures/sakurasou/jin.jpg", ok_cb, false)
|
||||
end
|
||||
|
||||
if string.starts(msg.text, '/misaki') or string.starts(msg.text, "/Misaki") then
|
||||
if string.starts(msg.text, '/misaki') or string.starts(msg.text, "/Misaki") then
|
||||
send_photo(get_receiver(msg), "pictures/sakurasou/misaki.jpg", ok_cb, false)
|
||||
end
|
||||
|
||||
if string.starts(msg.text, '/nanami') or string.starts(msg.text, "/Nanami") then
|
||||
if string.starts(msg.text, '/nanami') or string.starts(msg.text, "/Nanami") then
|
||||
send_photo(get_receiver(msg), "pictures/sakurasou/nanami.jpg", ok_cb, false)
|
||||
end
|
||||
|
||||
if string.starts(msg.text, '/ryuunosuke') or string.starts(msg.text, "/Ryuunosuke") then
|
||||
if string.starts(msg.text, '/ryuunosuke') or string.starts(msg.text, "/Ryuunosuke") then
|
||||
send_photo(get_receiver(msg), "pictures/sakurasou/ryuunosuke.jpg", ok_cb, false)
|
||||
end
|
||||
|
||||
if string.starts(msg.text, '/sorata') or string.starts(msg.text, "/Sorata") then
|
||||
if string.starts(msg.text, '/sorata') or string.starts(msg.text, "/Sorata") then
|
||||
send_photo(get_receiver(msg), "pictures/sakurasou/sorata.jpg", ok_cb, false)
|
||||
end
|
||||
end
|
||||
@ -47,4 +47,5 @@ return {
|
||||
"^/sorata",
|
||||
"^/Sorata"},
|
||||
run = run
|
||||
}
|
||||
}
|
||||
--by Akamaru
|
@ -4,39 +4,39 @@ function run(msg, matches)
|
||||
send_photo(get_receiver(msg), "pictures/senrankagura/hanzouacademy/asuka.jpg", ok_cb, false)
|
||||
end
|
||||
|
||||
if string.starts(msg.text, '/hibari') or string.starts(msg.text, "/Hibari") then
|
||||
if string.starts(msg.text, '/hibari') or string.starts(msg.text, "/Hibari") then
|
||||
send_photo(get_receiver(msg), "pictures/senrankagura/hanzouacademy/hibari.jpg", ok_cb, false)
|
||||
end
|
||||
|
||||
if string.starts(msg.text, '/ikaruga') or string.starts(msg.text, "/Ikaruga") then
|
||||
if string.starts(msg.text, '/ikaruga') or string.starts(msg.text, "/Ikaruga") then
|
||||
send_photo(get_receiver(msg), "pictures/senrankagura/hanzouacademy/ikaruga.jpg", ok_cb, false)
|
||||
end
|
||||
|
||||
if string.starts(msg.text, '/katsuragi') or string.starts(msg.text, "/Katsuragi") then
|
||||
if string.starts(msg.text, '/katsuragi') or string.starts(msg.text, "/Katsuragi") then
|
||||
send_photo(get_receiver(msg), "pictures/senrankagura/hanzouacademy/katsuragi.jpg", ok_cb, false)
|
||||
end
|
||||
|
||||
if string.starts(msg.text, '/yagyuu') or string.starts(msg.text, "/Yagyuu") then
|
||||
if string.starts(msg.text, '/yagyuu') or string.starts(msg.text, "/Yagyuu") then
|
||||
send_photo(get_receiver(msg), "pictures/senrankagura/hanzouacademy/yagyuu.jpg", ok_cb, false)
|
||||
end
|
||||
|
||||
if string.starts(msg.text, '/haruka') or string.starts(msg.text, "/Haruka") then
|
||||
if string.starts(msg.text, '/haruka') or string.starts(msg.text, "/Haruka") then
|
||||
send_photo(get_receiver(msg), "pictures/senrankagura/hebijoacademy/haruka.jpg", ok_cb, false)
|
||||
end
|
||||
|
||||
if string.starts(msg.text, '/hikage') or string.starts(msg.text, "/Hikage") then
|
||||
if string.starts(msg.text, '/hikage') or string.starts(msg.text, "/Hikage") then
|
||||
send_photo(get_receiver(msg), "pictures/senrankagura/hebijoacademy/hikage.jpg", ok_cb, false)
|
||||
end
|
||||
|
||||
if string.starts(msg.text, '/homura') or string.starts(msg.text, "/Homura") then
|
||||
if string.starts(msg.text, '/homura') or string.starts(msg.text, "/Homura") then
|
||||
send_photo(get_receiver(msg), "pictures/senrankagura/hebijoacademy/homura.jpg", ok_cb, false)
|
||||
end
|
||||
|
||||
if string.starts(msg.text, '/mirai') or string.starts(msg.text, "/Mirai") then
|
||||
if string.starts(msg.text, '/mirai') or string.starts(msg.text, "/Mirai") then
|
||||
send_photo(get_receiver(msg), "pictures/senrankagura/hebijoacademy/mirai.jpg", ok_cb, false)
|
||||
end
|
||||
|
||||
if string.starts(msg.text, '/yomi') or string.starts(msg.text, "/Yomi") then
|
||||
if string.starts(msg.text, '/yomi') or string.starts(msg.text, "/Yomi") then
|
||||
send_photo(get_receiver(msg), "pictures/senrankagura/hebijoacademy/yomi.jpg", ok_cb, false)
|
||||
end
|
||||
end
|
||||
@ -66,4 +66,4 @@ return {
|
||||
"^/Yomi"},
|
||||
run = run
|
||||
}
|
||||
|
||||
--by Akamaru
|
@ -1,12 +1,12 @@
|
||||
do
|
||||
|
||||
function run(msg, matches)
|
||||
local answers = {'Ja, es ist sehr ruhig hier','Wenn es dir zu still ist, kannst du gerne mit mir reden','*SCHREI*',
|
||||
'Dann mach doch etwas dagegen!','Möpse?','Vermutlich schlafen alle',
|
||||
'Stört dich die Stille?','Nein, es ist nicht still','Nyu?',
|
||||
'Besser als Spam','Stille ist schön',
|
||||
local answers = {'Ja, es ist sehr ruhig hier','Wenn es dir zu still ist, kannst du gerne mit mir reden',
|
||||
'*SCHREI*','Dann mach doch etwas dagegen!','Möpse?','Vermutlich schlafen alle',
|
||||
'Stört dich die Stille?','Nein, es ist nicht still','Nyu?','Besser als Spam','Stille ist schön',
|
||||
'Mein Name ist Mikubot','Spiel doch etwas http://curvefever.com/',
|
||||
'Stille sagt manchmal mehr als tausend Worte','Stille und Nacht sind untrennbar verwoben. Die Nacht ist die Stille unter den Sternen.'}
|
||||
'Stille sagt manchmal mehr als tausend Worte',
|
||||
'Stille und Nacht sind untrennbar verwoben. Die Nacht ist die Stille unter den Sternen.'}
|
||||
return answers[math.random(#answers)]
|
||||
end
|
||||
|
||||
@ -19,5 +19,5 @@ return {
|
||||
"^*Stille*"},
|
||||
run = run
|
||||
}
|
||||
|
||||
end
|
||||
--by Akamaru
|
@ -38,11 +38,11 @@ function run(msg, matches)
|
||||
return "Fehler: "..response_code
|
||||
end
|
||||
local data = json:decode(response_body)
|
||||
return "Tweet gesendet! Sieh ihn dir an: https://twitter.com/TalesOfTelegram/status/"..data.id_str
|
||||
return "Tweet gesendet!"..data.id_str
|
||||
end
|
||||
|
||||
return {
|
||||
description = "Sends a tweet",
|
||||
description = "",
|
||||
usage = "",
|
||||
patterns = {"^/tw (.+)"},
|
||||
run = run,
|
||||
|
@ -25,14 +25,14 @@ end
|
||||
function run(msg, matches)
|
||||
local text = getUrbanDictionary(msg.text)
|
||||
if (text == nil) then
|
||||
return "Zzzzz..."
|
||||
return "Nichts gefunden!"
|
||||
else
|
||||
return text
|
||||
end
|
||||
end
|
||||
|
||||
return {
|
||||
description = "get urban dictionary definition",
|
||||
description = "Zeigt eine Urban Dictionary Definition",
|
||||
usage = "/ud [topic]",
|
||||
patterns = {"^/ud (.*)$"},
|
||||
run = run
|
||||
|
@ -27,8 +27,15 @@ function run(msg, matches)
|
||||
local result = http.request(url)
|
||||
local title = getTitle(result)
|
||||
|
||||
-- We don't want 301 (and one Extrawurst for Google), 302, 404 and empty titles
|
||||
if title == "301 Moved Permanently" or title == "" or title == "404 Not Found" or title == "302 Found" or title == "Moved Permanently" or string.match(title, "DeviantArt") then
|
||||
--Ignoring 301, 302, 404 and more
|
||||
if title == "301 Moved Permanently" or
|
||||
title == "" or
|
||||
title == "404 Not Found" or
|
||||
title == "302 Found" or
|
||||
title == "Moved Permanently" or
|
||||
string.match(title, "deviantArt") or
|
||||
string.match(title, "twitch") or
|
||||
string.match(title, "eBay</title>") then
|
||||
print('Invalide, da "'..title..'"')
|
||||
else
|
||||
return title
|
||||
@ -37,11 +44,8 @@ function run(msg, matches)
|
||||
|
||||
return {
|
||||
description = "Postet URL-Titel",
|
||||
usage = "",
|
||||
patterns = {
|
||||
"(https?://[%w-_%.%?%.:/%+=&]+)$",
|
||||
},
|
||||
usage = "Irgendein Link",
|
||||
patterns = {"(https?://[%w-_%.%?%.:/%+=&]+)$",},
|
||||
run = run
|
||||
}
|
||||
|
||||
end
|
@ -12,5 +12,4 @@ return {
|
||||
},
|
||||
run = run
|
||||
}
|
||||
|
||||
end
|
||||
|
@ -6,8 +6,7 @@ end
|
||||
return {
|
||||
description = "Sagt dass ihr wieder da seid",
|
||||
usage = "/wd",
|
||||
patterns = {
|
||||
"^/wd(.*)$"
|
||||
},
|
||||
patterns = {"^/wd(.*)$"},
|
||||
run = run
|
||||
}
|
||||
--by Akamaru
|
@ -4,10 +4,12 @@ function run(msg, matches)
|
||||
local answers = {'1','2','3','4','5','6'}
|
||||
return answers[math.random(#answers)]
|
||||
end
|
||||
|
||||
return {
|
||||
description = "Würfel eine Zahl zwischen 1 bis 6",
|
||||
usage = "/würfel",
|
||||
patterns = {"^/würfel"},
|
||||
run = run
|
||||
}
|
||||
end
|
||||
end
|
||||
--by Akamaru
|
@ -1,15 +1,12 @@
|
||||
|
||||
function run(msg, matches)
|
||||
if matches[1] == "yolo" then
|
||||
return 'Hä YOLO?'
|
||||
end
|
||||
|
||||
return 'Hä YOLO?'
|
||||
end
|
||||
|
||||
return {
|
||||
description = "Sendet euch ein Hä YOLO?",
|
||||
usage = "/yolo",
|
||||
patterns = {"^/(yolo)"},
|
||||
patterns = {"^/yolo"},
|
||||
run = run
|
||||
}
|
||||
|
||||
--by Akamaru
|
@ -2,16 +2,16 @@
|
||||
function run(msg, matches)
|
||||
|
||||
-- local g = require "./plugins/google"
|
||||
-- local query = "site:pornhub.com+viewkey+" .. matches[1]
|
||||
-- local query = "site:youporn.com+viewkey+" .. matches[1]
|
||||
-- local new_matches = {query}
|
||||
|
||||
-- return g.run(msg, new_matches)
|
||||
local results = findAss(matches[1])
|
||||
local results = findYouporn(matches[1])
|
||||
return results-- build_result(results)
|
||||
end
|
||||
|
||||
function findAss(query)
|
||||
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=site:youporn.com+viewkey+" .. query:gsub(" ", "+")
|
||||
function findYouporn(query)
|
||||
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=site:youporn.com+viewkey+" .. query:gsub(" ", "+")
|
||||
|
||||
-- Do the request
|
||||
local res, code = https.request(api)
|
||||
@ -41,7 +41,7 @@ function build_result(query)
|
||||
end
|
||||
|
||||
return {
|
||||
description = "",
|
||||
description = "Sendet ein YouPorn Video",
|
||||
usage = "/youporn",
|
||||
patterns = {"^/youporn (.*)$",
|
||||
"^/yp (.*)$"},
|
||||
|
Reference in New Issue
Block a user