kleingkeiten

This commit is contained in:
Akamaru 2017-03-08 21:44:03 +01:00
parent 2a22184654
commit a1313ac28e
4 changed files with 17 additions and 23 deletions

View File

@ -36,7 +36,7 @@ function cleverbot:action(msg, config, matches)
utilities.send_reply(msg, 'Ich möchte jetzt nicht reden...')
return
end
redis:set(hash, data.cs)
utilities.send_reply(msg, data.output)
end

View File

@ -20,7 +20,8 @@ function mal_user:get_infos(user)
if not data then return nil end
local name = '<b>'..data.user_name..'</b>'
local id = ' <i>(ID '..data.user_id..')</i>'
local id = data.user_id
local user_pic = ' <i>(ID</i> <a href="https://myanimelist.cdn-dena.com/images/userimages/'..id..'.jpg">'..id..'</a><i>)</i>'
if data.user_watching == '1' then
watching = '<b>'..data.user_watching..' Anime</b>'
else
@ -36,7 +37,8 @@ function mal_user:get_infos(user)
end
local mal_url = '<a href="http://myanimelist.net/profile/'..data.user_name..'">Profil aufrufen</a>'
local text = name..id..' schaut derzeit '..watching..', hat '..pause..', '..dropped..' und '..complete..'. '..planed..' auf der Watchlist.\n'..mal_url
local text = name..user_pic..' schaut derzeit '..watching..', hat '..pause..', '..dropped..' und '..complete..'. '..planed..' auf der Watchlist.\n'..mal_url
return text
end
@ -47,7 +49,7 @@ function mal_user:action(msg, config, matches)
utilities.send_reply(msg, config.errors.results)
return
end
utilities.send_reply(msg, text, 'HTML')
utilities.send_message(msg.chat.id, text, false, msg.message_id, 'html')
end
return mal_user

View File

@ -3,10 +3,6 @@ local respond = {}
function respond:init(config)
respond.triggers = {
"/[Ss][Hh][Rr][Uu][Gg]",
"([Ff][Gg][Tt].? [Ss][Ww][Ii][Ff][Tt])",
"([Ee][Ii][Nn][Zz][Ii][Gg][Ss][Tt][Ee][Ss])",
"([Ee][Ii][Nn][Zz][Ii][Gg][Ss][Tt][Ee][Rr])",
"([Ee][Ii][Nn][Zz][Ii][Gg][Ss][Tt][Ee])",
"^/([Ll][Oo][Dd])$",
"/([Ll][Ff])",
"^/([Kk][Aa])$",
@ -50,19 +46,7 @@ function respond:action(msg, config, matches)
local BASE_URL = 'https://anditest.perseus.uberspace.de/plugins/respond'
if user_name == "DefenderX" then user_name = "Deffu" end
if string.match(msg.text, "[Ff][Gg][Tt].? [Ss][Ww][Ii][Ff][Tt]") then
utilities.send_message(receiver, 'Dünnes Eis, '..user_name..'!')
return
elseif string.match(msg.text, "([Ee][Ii][Nn][Zz][Ii][Gg][Ss][Tt][Ee][Ss])") then
utilities.send_message(receiver, '*einziges')
return
elseif string.match(msg.text, "([Ee][Ii][Nn][Zz][Ii][Gg][Ss][Tt][Ee][Rr])") then
utilities.send_message(receiver, '*einziger')
return
elseif string.match(msg.text, "([Ee][Ii][Nn][Zz][Ii][Gg][Ss][Tt][Ee])") then
utilities.send_message(receiver, '*einzige')
return
elseif string.match(msg.text, "[Ll][Oo][Dd]") then
if string.match(msg.text, "[Ll][Oo][Dd]") then
utilities.send_message(receiver, 'ಠ_ಠ')
return
elseif string.match(msg.text, "[Ll][Ff]") then

View File

@ -20,8 +20,10 @@ special.triggers = {
"^[Bb][Aa][Kk][Aa] [Bb][Oo][Tt]$",
"^[Aa][Hh][Aa].[Pp][Nn][Gg]$",
"^~?[Pp][Oo][Ii]$",
"[Yy][Oo][Ss][Hh][Ii] [Dd][Aa][Nn][Cc][Ee] [Gg][Ll][Ii][Tt][Cc][Hh]",
"[Yy][Oo][Ss][Hh][Ii] [Dd][Aa][Nn][Cc][Ee]",
"^[Yy][Oo][Ss][Hh][Ii] [Dd][Aa][Nn][Cc][Ee] [Gg][Ll][Ii][Tt][Cc][Hh]",
"^[Yy][Oo][Ss][Hh][Ii] [Dd][Aa][Nn][Cc][Ee]",
"^[Nn][Oo][Pp][Ee].[Aa][Vv][Ii]",
"^[Ss][Uu][Gg][Oo][Ii] [Dd][Ee][Ss][Uu] [Nn][Ee]",
"^[Nn][Aa][Nn][Oo] [Hh][Aa][Kk][Aa][Ss][Ee]$",
"^/[Tt][Hh][Yy][Mm][Ee]$",
"^[Yy][Oo][Ll][Oo]$",
@ -104,6 +106,12 @@ function special:action(msg, config, matches)
elseif msg_text:match("[Yy][Oo][Ss][Hh][Ii] [Dd][Aa][Nn][Cc][Ee]") then
utilities.send_video(msg.chat.id, 'http://code.ponywave.de/workspace/test/fuck/YOSHI_DANCE.mp4', 'YOSHI DANCE!', msg.message_id)
return
elseif msg_text:match("[Nn][Oo][Pp][Ee].[Aa][Vv][Ii]") then
utilities.send_video(msg.chat.id, 'http://code.ponywave.de/workspace/test/fuck/nope.mp4', nil, msg.message_id)
return
elseif msg_text:match("[Ss][Uu][Gg][Oo][Ii] [Dd][Ee][Ss][Uu] [Nn][Ee]") then
utilities.send_video(msg.chat.id, 'http://code.ponywave.de/workspace/test/fuck/sugoidesune.mp4', 'eeeeee!?\nSUGOI DESU NE?', msg.message_id)
return
elseif msg_text:match("[Nn][Aa][Nn][Oo] [Hh][Aa][Kk][Aa][Ss][Ee]") then
utilities.send_video(msg.chat.id, 'http://code.ponywave.de/workspace/test/fuck/nano-hakase-1.mp4', 'NANO! NANO! NANO! NANO! NANO! NANO!\nHAKASE! HAKASE! HAKASE! HAKASE! HAKASE! HAKASE!', msg.message_id)
return