https für Cleverbot
This commit is contained in:
parent
b50b000fd3
commit
b8a220685a
@ -2,8 +2,8 @@ do
|
|||||||
|
|
||||||
function run(msg, matches)
|
function run(msg, matches)
|
||||||
local text = msg.text
|
local text = msg.text
|
||||||
local url = "http://nocf.andibi.tk/dl/chatter-bot-api/cleverbot.php?text="..URL.escape(text)
|
local url = "https://andibi.tk/dl/chatter-bot-api/cleverbot.php?text="..URL.escape(text)
|
||||||
local query = http.request(url)
|
local query = https.request(url)
|
||||||
if query == nil then return 'Ein Fehler ist aufgetreten :(' end
|
if query == nil then return 'Ein Fehler ist aufgetreten :(' end
|
||||||
local decode = json:decode(query)
|
local decode = json:decode(query)
|
||||||
local answer = string.gsub(decode.clever, "Ä", "Ä")
|
local answer = string.gsub(decode.clever, "Ä", "Ä")
|
||||||
|
Reference in New Issue
Block a user