Fixe Twitter_User

This commit is contained in:
Andreas Bielawski 2016-08-11 03:24:05 +02:00
parent 6b469fdb37
commit c931404452

View File

@ -56,7 +56,7 @@ function twitter_user:resolve_url(url)
end end
end end
function twitter_user:action(msg) function twitter_user:action(msg, config, matches)
local twitter_url = "https://api.twitter.com/1.1/users/show/"..matches[1]..".json" local twitter_url = "https://api.twitter.com/1.1/users/show/"..matches[1]..".json"
local response_code, response_headers, response_status_line, response_body = client:PerformRequest("GET", twitter_url) local response_code, response_headers, response_status_line, response_body = client:PerformRequest("GET", twitter_url)
local response = json.decode(response_body) local response = json.decode(response_body)