[ANY] Cleverbot (is a douchebag)
4 Attachment(s)
[ANY] Cleverbot https://puu.sh/rooCC/910797c17e.png So... I just saw that Headline released a cleverbot API, thanks to slampemil to let me know. Many month ago, I tried to do that in a very impractical way and I just forgot about it. But since I got the API, I was able to do it. So thanks again to Headline wich should have all the credits for this, I just made it more user friendly. Original idea : https://forums.alliedmods.net/showthread.php?t=270743 https://puu.sh/rooCG/944b44999e.png Here is the list of avaible features for now :
https://puu.sh/rooCK/066043be6c.png Before anything, make sure you have installed : [Any] Chat-Processor (Replacement for Simple Chat Processor) [ANY] CleverBot API Wrapper [ANY] SteamWorks 1) Create an account to get your API key here : https://www.cleverbot.com/api/#abovetitle 2) Get your API key here once you are registred : https://www.cleverbot.com/api/my-account/ 3) Download the SMX file. 4) Put the smx file in the PLUGINS folder. 5) Edit the convar to suits your needs (put them in your server.cfg or whatever. No file created for this plugin). 6) Load the plugin by changing map, or restarting the server. 8) Plugin won't work now, you need to do at least once : sm_cbaddapikey [API KEY] ! YOU NEED TO SET AT LEAST ONE API KEY ! But you can add as much as you want. https://puu.sh/rooCt/e894d3eab4.png sm_cbmsg - Send a message to the bot, can only be done through the server console ! Require : Admin flag - config sm_cbaddapikey - Add an api key to the database. Otherwise, in game you can write a message starting with the bot name, for exemple if "cleverbot_name" CVAR is set to "Cleverbot" (by default it is) you will need to write a request like this : Exemple 1 Code:
Arkarr : Cleverbot How are you ? Code:
Arkarr : Cleverbot How much does 1+1 ? cleverbot_database_config "storage-local" The name of the configuration of the database in database.cfg, by default it's stored in the local sourcemod database.[/url] cleverbot_name "Cleverbot" The keyword to send cleverbot messages. https://puu.sh/rooCU/f0cc0f7c77.png Nothing, really. Just feel free to ask. https://puu.sh/rooCk/5e5ba6f955.png None found yet. https://puu.sh/rooCN/00e99ea989.png <none> http://puu.sh/rNitX/6e8e51b58d.png See attachement at the end of this post Enjoy ! Logs :
Spoiler
|
Re: [ANY] Cleverbot (is a douchebag)
Exactly what I made the wrapper for :bacon!:
|
Re: [ANY] Cleverbot (is a douchebag)
Very nice!
Suggestions: since each key have limited 5k queries, you can add something for prevent abuse? (Prevent spam to the bot or limit the queries to X each day). Or maybe add option for use multiple keys (for distribute the queries). |
Re: [ANY] Cleverbot (is a douchebag)
Quote:
EDIT: Done. |
Re: [ANY] Cleverbot (is a douchebag)
Finnaly got the chat-processor to work with Insurgency, but the only command that works for me is the sm_cbmsg command from server console. Otherwise it says "unknown command". The plugin is loaded correct and no error message.
|
Re: [ANY] Cleverbot (is a douchebag)
Quote:
|
Re: [ANY] Cleverbot (is a douchebag)
Quote:
|
Re: [ANY] Cleverbot (is a douchebag)
The responses of the bot seem to be 'client side' only? (i.e. Not everyone can see response by bot?).
|
Re: [ANY] Cleverbot (is a douchebag)
Quote:
|
Re: [ANY] Cleverbot (is a douchebag)
Quote:
Oh well...Life moves on..... |
All times are GMT -4. The time now is 04:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.