[Include] Cleverbot - Never Be Alone Again!
#1

Cleverbot - Never be alone again!
Ok. So I saw a guy a few days ago that wanted to be able to talk with Cleverbot ingame so I made this simple include that uses some PHP code that I found and modified.
(This is not the best code I've made but it works so be happy! )

Features:
* You will never be alone on the server!
* Only has one function!
* This supports Cleverbot, Jabberwacky and Pandorabots.
* Easy to edit!
* You don't need to host the PHP files if you don't want to but I recommend that you do it!

So how do we setup this crap?
First download the .inc file from the link below. Paste the .inc file in your pawno/includes folder. Then open your gamemode and add
pawn Код:
#include <CleverBot>
below
pawn Код:
#include <a_samp>
and that's it!
(Notice: Since I just use a free host for testing I recommend that you host the PHP files on your own!)

Download:
The Include File
PHP Files In A .Rar File

If you host the files on your own follow this steps:
1. Create a folder on your webhost. (You can name it whatever you want)
2. Place the chatterbotapi.php and the test.php in that folder.
3. Open the .inc file and edit line 11 to something like this:
pawn Код:
#define CleverHost "YourAwesomeSite.com/TheFolder/test.php" //Location to the test.php file! (Without HTTP://)
And now you're done!

Test Command:
pawn Код:
//Just a simple code but you can use it however you want!
//ZCMD Test code: /message [Text]
CMD:message(playerid, params[])
{
    if(isnull(params)) return SendClientMessage(playerid,-1,"Usage: /message [Text]");
    new test[128];
    format(test, sizeof(test), "Me: %s", params);
    SendClientMessage(playerid, 0xFFFFFFFF, test);
    SendPlayerMessageToCleverbot(playerid, params);
    return 1;
}
Screenshot:


Credits:
Fj0rtizFredde - Creating this crap!
The guy who made the base for the API.
Yes I know that I made some grammar misstakes (I know about the one in the title, it's going to be changed!)
Reply


Messages In This Thread
Cleverbot - Never Be Alone Again! - by Fj0rtizFredde - 01.02.2012, 20:34
Re: Cleverbot - Never be alone agian! - by FireCat - 01.02.2012, 20:56
Re: Cleverbot - Never be alone agian! - by Steven82 - 01.02.2012, 23:42
Re : Cleverbot - Never be alone agian! - by deliocomrp - 02.02.2012, 05:37
Re: Cleverbot - Never be alone agian! - by Snowman12 - 02.02.2012, 05:42
Re: Cleverbot - Never be alone agian! - by davve95 - 02.02.2012, 05:44
Re: Cleverbot - Never be alone agian! - by aco_SRBIJA - 02.02.2012, 06:55
Re: Cleverbot - Never be alone agian! - by Hiddos - 02.02.2012, 07:41
Respuesta: Cleverbot - Never be alone agian! - by [Nikk] - 02.02.2012, 07:45
Re: Cleverbot - Never be alone agian! - by ғαιιοцт - 02.02.2012, 07:49
Re: Cleverbot - Never be alone agian! - by SourceCode - 02.02.2012, 08:32
Re: Cleverbot - Never be alone agian! - by Niko_boy - 02.02.2012, 10:54
Re: Cleverbot - Never be alone agian! - by ғαιιοцт - 02.02.2012, 11:13
Re: Cleverbot - Never be alone agian! - by Ronaldo_raul™ - 02.02.2012, 11:22
Re: Cleverbot - Never be alone agian! - by wups - 02.02.2012, 11:46
Re: Cleverbot - Never be alone agian! - by Fj0rtizFredde - 02.02.2012, 17:41
Re: Cleverbot - Never be alone agian! - by SiEx - 03.02.2012, 06:01
Re: Cleverbot - Never Be Alone Again! - by kosspara - 03.02.2012, 10:19
Re: Cleverbot - Never Be Alone Again! - by Fj0rtizFredde - 03.02.2012, 17:13
Re : Cleverbot - Never Be Alone Again! - by Varkoll_ - 03.02.2012, 21:07
Re: Cleverbot - Never Be Alone Again! - by titanak - 04.02.2012, 02:52
Re: Cleverbot - Never Be Alone Again! - by [J] - 05.02.2012, 11:37
Re: Cleverbot - Never Be Alone Again! - by [P4] - 05.02.2012, 22:00
Re: Cleverbot - Never Be Alone Again! - by xXitsgodzillaXx - 22.03.2012, 16:04
Re: Cleverbot - Never Be Alone Again! - by Fj0rtizFredde - 22.03.2012, 20:23
Re: Cleverbot - Never Be Alone Again! - by xXitsgodzillaXx - 23.03.2012, 01:34
Re: Cleverbot - Never Be Alone Again! - by Fj0rtizFredde - 24.03.2012, 20:33
Re: Cleverbot - Never Be Alone Again! - by [MM]18240[FMB] - 17.07.2012, 21:37
Re: Cleverbot - Never Be Alone Again! - by pln102 - 26.10.2012, 23:54
Re: Cleverbot - Never Be Alone Again! - by a.z.a.r - 27.10.2012, 11:14
Re: Cleverbot - Never Be Alone Again! - by VinLoman - 02.05.2014, 08:56
Re: Cleverbot - Never Be Alone Again! - by iRaiDeN - 02.05.2014, 08:57
Re: Cleverbot - Never Be Alone Again! - by Xtreamerz - 05.05.2014, 02:40
Re: Cleverbot - Never Be Alone Again! - by [WSF]ThA_Devil - 12.06.2014, 20:48
Respuesta: Cleverbot - Never Be Alone Again! - by Gryphus One - 13.06.2014, 02:41
Respuesta: Cleverbot - Never Be Alone Again! - by deryan - 05.07.2014, 18:49
Re: Cleverbot - Never Be Alone Again! - by FahadKing07 - 05.07.2014, 21:55
Re: Respuesta: Cleverbot - Never Be Alone Again! - by DamonD - 05.07.2014, 23:31
Re: Cleverbot - Never Be Alone Again! - by uZ1 - 10.07.2015, 20:17
Re: Cleverbot - Never Be Alone Again! - by iLearner - 31.01.2017, 06:48
Re: Cleverbot - Never Be Alone Again! - by iLearner - 31.01.2017, 07:01
Re: Cleverbot - Never Be Alone Again! - by Bolex_ - 31.01.2017, 08:07
Re: Cleverbot - Never Be Alone Again! - by iMean - 07.04.2017, 12:15
Respuesta: Cleverbot - Never Be Alone Again! - by Goss - 07.04.2017, 19:09
Re: Cleverbot - Never Be Alone Again! - by Astralis - 23.04.2017, 19:01

Forum Jump:


Users browsing this thread: 1 Guest(s)