Raised This Month: $12 Target: $400
 3% 

[ANY] Cleverbot (is a douchebag)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Plugin ID:
5556
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 03-02-2017 , 10:08   [ANY] Cleverbot (is a douchebag)
    Reply With Quote #1

    [ANY] Cleverbot


    Talk with a robot because who need friends !
    https://www.cleverbot.com/

    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


    Here is the list of avaible features for now :
    • Set a custom name for the bot
    • Instant connection, almost no delay between messages and answers (thanks to the api)
    • Easy to configure



    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.


    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 ?
    Exemple 2
    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.


    Nothing, really. Just feel free to ask.


    None found yet.


    <none>


    See attachement at the end of this post

    Enjoy !

    Logs :
    Spoiler
    Attached Files
    File Type: sp Get Plugin or Get Source (Cleverbot.sp - 532 views - 6.7 KB)
    File Type: smx Cleverbot.smx (17.5 KB, 478 views)
    __________________

    Last edited by Arkarr; 03-05-2017 at 04:55.
    Arkarr is offline
    headline
    SourceMod Moderator
    Join Date: Mar 2015
    Old 03-02-2017 , 19:48   Re: [ANY] Cleverbot (is a douchebag)
    Reply With Quote #2

    Exactly what I made the wrapper for
    headline is offline
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 03-03-2017 , 04:45   Re: [ANY] Cleverbot (is a douchebag)
    Reply With Quote #3

    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).
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.

    Franc1sco is offline
    Send a message via MSN to Franc1sco
    Arkarr
    Veteran Member
    Join Date: Sep 2012
    Location: Just behind my PC screen
    Old 03-03-2017 , 08:19   Re: [ANY] Cleverbot (is a douchebag)
    Reply With Quote #4

    Quote:
    Originally Posted by Franc1sco View Post
    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).
    Not sure if it's allowed by Cleverbot team. But I'll keep this idea in mind.

    EDIT: Done.
    __________________

    Last edited by Arkarr; 03-05-2017 at 04:55.
    Arkarr is offline
    slampemil
    Junior Member
    Join Date: Dec 2014
    Old 05-19-2017 , 04:10   Re: [ANY] Cleverbot (is a douchebag)
    Reply With Quote #5

    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.
    __________________
    slampemil is offline
    Arkarr
    Veteran Member
    Join Date: Sep 2012
    Location: Just behind my PC screen
    Old 05-19-2017 , 07:09   Re: [ANY] Cleverbot (is a douchebag)
    Reply With Quote #6

    Quote:
    Originally Posted by slampemil View Post
    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.
    Herm.. There is only 'sm_cbmsg' as command for this plugin, and also 'sm_cbaddapikey' but if this last one return an error, it's likely a database error.
    __________________

    Last edited by Arkarr; 05-19-2017 at 07:10.
    Arkarr is offline
    slampemil
    Junior Member
    Join Date: Dec 2014
    Old 05-19-2017 , 13:21   Re: [ANY] Cleverbot (is a douchebag)
    Reply With Quote #7

    Quote:
    Originally Posted by Arkarr View Post
    Herm.. There is only 'sm_cbmsg' as command for this plugin, and also 'sm_cbaddapikey' but if this last one return an error, it's likely a database error.
    Yeah it's the addkey that gives an unknown command error. Will look into the database. I have it on default. Thanks for the help.
    __________________
    slampemil is offline
    MaloModo
    Veteran Member
    Join Date: Aug 2008
    Old 06-07-2017 , 11:45   Re: [ANY] Cleverbot (is a douchebag)
    Reply With Quote #8

    The responses of the bot seem to be 'client side' only? (i.e. Not everyone can see response by bot?).
    MaloModo is offline
    Arkarr
    Veteran Member
    Join Date: Sep 2012
    Location: Just behind my PC screen
    Old 06-07-2017 , 12:03   Re: [ANY] Cleverbot (is a douchebag)
    Reply With Quote #9

    Quote:
    Originally Posted by MaloModo View Post
    The responses of the bot seem to be 'client side' only? (i.e. Not everyone can see response by bot?).
    Yes.
    __________________
    Arkarr is offline
    MaloModo
    Veteran Member
    Join Date: Aug 2008
    Old 06-08-2017 , 10:59   Re: [ANY] Cleverbot (is a douchebag)
    Reply With Quote #10

    Quote:
    Originally Posted by Arkarr View Post
    Yes.
    Well that isn't so fun...Clever bots "fun factor" is that he isn't so "clever" most of the time

    Oh well...Life moves on.....
    MaloModo is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 21:02.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode