yagop / telegram-bot

UNMAINTAINED - A Telegram Bot based on plugins
GNU General Public License v2.0
848 stars 502 forks source link

Request: Cleverbot Plugin #133

Open davoz96 opened 9 years ago

davoz96 commented 9 years ago

How about a plugin for Cleverbot? I think it would be very cool :)

juanjeakabob commented 9 years ago

nice idea!

dausruddin commented 9 years ago

I want it so much

JuanPotato commented 9 years ago

This would be great

nutinshell commented 9 years ago

+1

bizkut commented 9 years ago

+1

bizkut commented 9 years ago

https://github.com/venam/tg-bot

Wawoul commented 9 years ago

+1

dausruddin commented 9 years ago

Actually, I made the plugin for private usage. But I dont recommend it to anyone to use cleverbot. This is because for some period, the api cant be access, resulting bot not responding to user's queries. I recommend pandorabot instead.

Wawoul commented 9 years ago

Actually, I made the plugin for private usage. But I dont recommend it to anyone to use cleverbot. This is because for some period, the api cant be access, resulting bot not responding to user's queries. I recommend pandorabot instead.

Doesn't pandorabot also have a limited amount of calls to it?

dausruddin commented 9 years ago

I dont know @Wawoul , I dont have many request currently. At least, it doesnt stop randomly :P

EklavyaFCB commented 9 years ago

+1

Karlheinzniebuhr commented 9 years ago

+1

Brawl345 commented 9 years ago

I made a simple plugin :) You can use my url or you can clone the chatter-bot-api yourself: https://github.com/pierredavidbelanger/chatter-bot-api

do

function run(msg, matches)
 local text = msg.text
 local url = "https://static.wiidatabase.de/personal/chatter-bot-api/cleverbot.php?text="..URL.escape(text) --- replace with your url
 local query = https.request(url)
 if query == nil then return 'An error happened :(' end
 local decode = json:decode(query)
 return decode.clever
end

return {
  description = "chat with cleverbot!", 
  usage = "!cbot [text]: chat with cleverbot",
  patterns = {
    "^!cbot (.*)$"
 },
 run = run
}

end