$§%&/(/)(

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

3
.gitignore vendored
View File

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

View File

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

View File

@ -1,7 +1,7 @@
local muschel = {}
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()

View File

@ -5,7 +5,6 @@ special.triggers = {
"^[Mm][Ii][Kk][Uu]%??$",
"^/[Oo][Ll][Dd]$",
"^[Nn][Yy][Uu]$",
"^[Nn][Oo][Pp][Ee].[Aa][Vv][Ii]$",
"^[Nn][Ii][Ii][Ss][Aa][Nn]$",
"^[Nn][Ii][Ii](-)[Ss][Aa][Nn]$",
"^[Nn][Ii][Ss][Ss][Aa][Nn]$",
@ -22,7 +21,6 @@ special.triggers = {
"^~?[Pp][Oo][Ii]$",
"^/[Tt][Hh][Yy][Mm][Ee]$",
"^[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]",
"^/[Kk][Ii][Ll][Ll] (.*)",
"^[Ii][Nn][Ll][Oo][Vv][Ee]$",
@ -48,10 +46,6 @@ function special:action(msg, config, matches)
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)
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
utilities.send_photo(msg.chat.id, download_to_file('http://img.ponywave.de/di/XB2T/Nii-san.jpg'), nil, msg.message_id)
return
@ -99,15 +93,6 @@ function special:action(msg, config, matches)
return
elseif msg_text:match("[Yy][Oo][Ll][Oo]") then
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
utilities.send_photo(msg.chat.id, download_to_file('http://img.ponywave.de/di/N03B/squid.jpg'), 'They are', msg.message_id)
return

View File

@ -5,6 +5,7 @@ wordpress_recent_post.triggers = {
"^/([Tt][Hh][Cc]) (.+)$",
"^/([Pp][Ww]) (.+)$",
"^/([Aa][Kk][Aa])$",
"^/([Tt][Hh][Cc])$",
"^/([Pp][Ww])$"
}
@ -48,7 +49,7 @@ function wordpress_recent_post:get_full_url(blog, tag)
image_url = nil
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
end