kleingkeiten
This commit is contained in:
		@@ -36,7 +36,7 @@ function cleverbot:action(msg, config, matches)
 | 
				
			|||||||
    utilities.send_reply(msg, 'Ich möchte jetzt nicht reden...')
 | 
					    utilities.send_reply(msg, 'Ich möchte jetzt nicht reden...')
 | 
				
			||||||
	return
 | 
						return
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
  redis:set(hash, data.cs)
 | 
					  redis:set(hash, data.cs)
 | 
				
			||||||
  utilities.send_reply(msg, data.output)
 | 
					  utilities.send_reply(msg, data.output)
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -20,7 +20,8 @@ function mal_user:get_infos(user)
 | 
				
			|||||||
  if not data then return nil end
 | 
					  if not data then return nil end
 | 
				
			||||||
 
 | 
					 
 | 
				
			||||||
  local name = '<b>'..data.user_name..'</b>'
 | 
					  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
 | 
					  if data.user_watching == '1' then
 | 
				
			||||||
    watching = '<b>'..data.user_watching..' Anime</b>'
 | 
					    watching = '<b>'..data.user_watching..' Anime</b>'
 | 
				
			||||||
  else
 | 
					  else
 | 
				
			||||||
@@ -36,7 +37,8 @@ function mal_user:get_infos(user)
 | 
				
			|||||||
  end
 | 
					  end
 | 
				
			||||||
  local mal_url = '<a href="http://myanimelist.net/profile/'..data.user_name..'">Profil aufrufen</a>'
 | 
					  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
 | 
					  return text
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -47,7 +49,7 @@ function mal_user:action(msg, config, matches)
 | 
				
			|||||||
    utilities.send_reply(msg, config.errors.results)
 | 
					    utilities.send_reply(msg, config.errors.results)
 | 
				
			||||||
	return
 | 
						return
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
  utilities.send_reply(msg, text, 'HTML')
 | 
					  utilities.send_message(msg.chat.id, text, false, msg.message_id, 'html')
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
return mal_user
 | 
					return mal_user
 | 
				
			||||||
@@ -3,10 +3,6 @@ local respond = {}
 | 
				
			|||||||
function respond:init(config)
 | 
					function respond:init(config)
 | 
				
			||||||
    respond.triggers = {
 | 
					    respond.triggers = {
 | 
				
			||||||
	"/[Ss][Hh][Rr][Uu][Gg]",
 | 
						"/[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][Oo][Dd])$",
 | 
				
			||||||
	"/([Ll][Ff])",
 | 
						"/([Ll][Ff])",
 | 
				
			||||||
	"^/([Kk][Aa])$",
 | 
						"^/([Kk][Aa])$",
 | 
				
			||||||
@@ -50,19 +46,7 @@ function respond:action(msg, config, matches)
 | 
				
			|||||||
  local BASE_URL = 'https://anditest.perseus.uberspace.de/plugins/respond'
 | 
					  local BASE_URL = 'https://anditest.perseus.uberspace.de/plugins/respond'
 | 
				
			||||||
  if user_name == "DefenderX" then user_name = "Deffu" end
 | 
					  if user_name == "DefenderX" then user_name = "Deffu" end
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
  if string.match(msg.text, "[Ff][Gg][Tt].? [Ss][Ww][Ii][Ff][Tt]") then
 | 
					  if string.match(msg.text, "[Ll][Oo][Dd]") 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
 | 
					 | 
				
			||||||
    utilities.send_message(receiver,  'ಠ_ಠ')
 | 
					    utilities.send_message(receiver,  'ಠ_ಠ')
 | 
				
			||||||
    return
 | 
					    return
 | 
				
			||||||
  elseif string.match(msg.text, "[Ll][Ff]") then
 | 
					  elseif string.match(msg.text, "[Ll][Ff]") then
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -20,8 +20,10 @@ special.triggers = {
 | 
				
			|||||||
	"^[Bb][Aa][Kk][Aa] [Bb][Oo][Tt]$",
 | 
						"^[Bb][Aa][Kk][Aa] [Bb][Oo][Tt]$",
 | 
				
			||||||
	"^[Aa][Hh][Aa].[Pp][Nn][Gg]$",
 | 
						"^[Aa][Hh][Aa].[Pp][Nn][Gg]$",
 | 
				
			||||||
	"^~?[Pp][Oo][Ii]$",
 | 
						"^~?[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] [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]",
 | 
				
			||||||
 | 
						"^[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]$",
 | 
						"^[Nn][Aa][Nn][Oo] [Hh][Aa][Kk][Aa][Ss][Ee]$",
 | 
				
			||||||
	"^/[Tt][Hh][Yy][Mm][Ee]$",
 | 
						"^/[Tt][Hh][Yy][Mm][Ee]$",
 | 
				
			||||||
	"^[Yy][Oo][Ll][Oo]$",
 | 
						"^[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
 | 
					  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)
 | 
						utilities.send_video(msg.chat.id, 'http://code.ponywave.de/workspace/test/fuck/YOSHI_DANCE.mp4', 'YOSHI DANCE!', msg.message_id)
 | 
				
			||||||
	return
 | 
						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
 | 
					  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)
 | 
						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
 | 
						return
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user