$§%&/(/)(

This commit is contained in:
Andreas Bielawski 2016-08-27 14:49:22 +02:00
commit 0ea2ab267f
5 changed files with 6 additions and 18 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@ config.lua
tg tg
tmp/* tmp/*
miku/plugins/licht.lua miku/plugins/licht.lua
Bot-Kommandoliste.txt

View File

@ -4,6 +4,7 @@ function cleverbot:init(config)
cleverbot.triggers = { cleverbot.triggers = {
"^/[Cc][Bb][Oo][Tt] (.*)$", "^/[Cc][Bb][Oo][Tt] (.*)$",
"^[Mm][Ii][Kk][Uu][Bb][Oo][Tt], (.+)$", "^[Mm][Ii][Kk][Uu][Bb][Oo][Tt], (.+)$",
"^[Mm][Ii][Kk][Uu], (.+)$"
} }
cleverbot.url = config.chatter.cleverbot_api cleverbot.url = config.chatter.cleverbot_api
end end

View File

@ -1,7 +1,7 @@
local muschel = {} local muschel = {}
muschel.triggers = { muschel.triggers = {
"^[Mm][Aa][Gg][Ii][Ss][Cc][Hh][Ee] [Mm][Ii][Ee][Ss][Mm][Uu][Ss][Cc][Hh][Ee][Ll] (.*)$" "^[Mm][Aa][Gg][Ii][Ss][Cc][Hh][Ee] [Mm][Ii][Ee][Ss][Mm][Uu][Ss][Cc][Hh][Ee][Ll],? (.*)$"
} }
function muschel:frag_die_muschel() function muschel:frag_die_muschel()

View File

@ -5,7 +5,6 @@ special.triggers = {
"^[Mm][Ii][Kk][Uu]%??$", "^[Mm][Ii][Kk][Uu]%??$",
"^/[Oo][Ll][Dd]$", "^/[Oo][Ll][Dd]$",
"^[Nn][Yy][Uu]$", "^[Nn][Yy][Uu]$",
"^[Nn][Oo][Pp][Ee].[Aa][Vv][Ii]$",
"^[Nn][Ii][Ii][Ss][Aa][Nn]$", "^[Nn][Ii][Ii][Ss][Aa][Nn]$",
"^[Nn][Ii][Ii](-)[Ss][Aa][Nn]$", "^[Nn][Ii][Ii](-)[Ss][Aa][Nn]$",
"^[Nn][Ii][Ss][Ss][Aa][Nn]$", "^[Nn][Ii][Ss][Ss][Aa][Nn]$",
@ -22,7 +21,6 @@ special.triggers = {
"^~?[Pp][Oo][Ii]$", "^~?[Pp][Oo][Ii]$",
"^/[Tt][Hh][Yy][Mm][Ee]$", "^/[Tt][Hh][Yy][Mm][Ee]$",
"^[Yy][Oo][Ll][Oo]$", "^[Yy][Oo][Ll][Oo]$",
"^/[Kk][Aa][Pp][Pp][Aa]$",
"[Ii] [Ww][Ii][Ss][Hh] [Ss][Qq][Uu][Ii][Dd][Ss] [Ww][Ee][Rr][Ee] [Rr][Ee][Aa][Ll]", "[Ii] [Ww][Ii][Ss][Hh] [Ss][Qq][Uu][Ii][Dd][Ss] [Ww][Ee][Rr][Ee] [Rr][Ee][Aa][Ll]",
"^/[Kk][Ii][Ll][Ll] (.*)", "^/[Kk][Ii][Ll][Ll] (.*)",
"^[Ii][Nn][Ll][Oo][Vv][Ee]$", "^[Ii][Nn][Ll][Oo][Vv][Ee]$",
@ -48,10 +46,6 @@ function special:action(msg, config, matches)
elseif msg_text:match("[Nn][Yy][Uu]") then elseif msg_text:match("[Nn][Yy][Uu]") then
utilities.send_photo(msg.chat.id, download_to_file('http://img.ponywave.de/di/JSXH/nyu.jpg'), nil, msg.message_id) utilities.send_photo(msg.chat.id, download_to_file('http://img.ponywave.de/di/JSXH/nyu.jpg'), nil, msg.message_id)
return return
elseif msg_text:match("[Nn][Oo][Pp][Ee].[Aa][Vv][Ii]") then
utilities.send_typing(msg.chat.id, 'upload_video')
utilities.send_video(msg.chat.id, download_to_file('https://dl.dropboxusercontent.com/u/32829149/nope.avi'), nil, msg.message_id)
return
elseif msg_text:match("[Nn][Ii][Ii][Ss][Aa][Nn]") or msg_text:match("[Nn][Ii][Ii](-)[Ss][Aa][Nn]") or msg_text:match("[Nn][Ii][Ss][Ss][Aa][Nn]") then elseif msg_text:match("[Nn][Ii][Ii][Ss][Aa][Nn]") or msg_text:match("[Nn][Ii][Ii](-)[Ss][Aa][Nn]") or msg_text:match("[Nn][Ii][Ss][Ss][Aa][Nn]") then
utilities.send_photo(msg.chat.id, download_to_file('http://img.ponywave.de/di/XB2T/Nii-san.jpg'), nil, msg.message_id) utilities.send_photo(msg.chat.id, download_to_file('http://img.ponywave.de/di/XB2T/Nii-san.jpg'), nil, msg.message_id)
return return
@ -99,15 +93,6 @@ function special:action(msg, config, matches)
return return
elseif msg_text:match("[Yy][Oo][Ll][Oo]") then elseif msg_text:match("[Yy][Oo][Ll][Oo]") then
output = 'Hä YOLO?' output = 'Hä YOLO?'
elseif msg_text:match("/[Kk][Aa][Pp][Pp][Aa]") then
output = [[
]]
elseif msg_text:match("[Ii] [Ww][Ii][Ss][Hh] [Ss][Qq][Uu][Ii][Dd][Ss] [Ww][Ee][Rr][Ee] [Rr][Ee][Aa][Ll]") then elseif msg_text:match("[Ii] [Ww][Ii][Ss][Hh] [Ss][Qq][Uu][Ii][Dd][Ss] [Ww][Ee][Rr][Ee] [Rr][Ee][Aa][Ll]") then
utilities.send_photo(msg.chat.id, download_to_file('http://img.ponywave.de/di/N03B/squid.jpg'), 'They are', msg.message_id) utilities.send_photo(msg.chat.id, download_to_file('http://img.ponywave.de/di/N03B/squid.jpg'), 'They are', msg.message_id)
return return

View File

@ -5,6 +5,7 @@ wordpress_recent_post.triggers = {
"^/([Tt][Hh][Cc]) (.+)$", "^/([Tt][Hh][Cc]) (.+)$",
"^/([Pp][Ww]) (.+)$", "^/([Pp][Ww]) (.+)$",
"^/([Aa][Kk][Aa])$", "^/([Aa][Kk][Aa])$",
"^/([Tt][Hh][Cc])$",
"^/([Pp][Ww])$" "^/([Pp][Ww])$"
} }
@ -48,7 +49,7 @@ function wordpress_recent_post:get_full_url(blog, tag)
image_url = nil image_url = nil
end end
local text = '<b>'..title..'</b>\n<i>'..from..' am '..posted_at..'</i>'..content..'\n<a href="'..url..'">Artikel aufrufen</a>' local text = '<b>'..title..'</b>\n<i>'..from..' am '..posted_at..'</i>'..content..'\n<a href="'..url..'">Beitrag aufrufen</a>'
return text, image_url return text, image_url
end end