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