SA-MP Forums Archive
[Include] Cleverbot - Never Be Alone Again! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Cleverbot - Never Be Alone Again! (/showthread.php?tid=315117)

Pages: 1 2 3


Cleverbot - Never Be Alone Again! - Fj0rtizFredde - 01.02.2012

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!)


Re: Cleverbot - Never be alone agian! - FireCat - 01.02.2012

Awesome and Epic!


Re: Cleverbot - Never be alone agian! - Steven82 - 01.02.2012

Actually, this is pretty cool not. Good job!


Re : Cleverbot - Never be alone agian! - deliocomrp - 02.02.2012

Wow ... thanks!


Re: Cleverbot - Never be alone agian! - Snowman12 - 02.02.2012

OMG I HAVE A FRIEND!!!! I joke nice idea but I rage to easy.


Re: Cleverbot - Never be alone agian! - davve95 - 02.02.2012

Nice and cool!. Good job


Re: Cleverbot - Never be alone agian! - aco_SRBIJA - 02.02.2012

Ragging would be gained only

Those bots are not feeling feelings


Re: Cleverbot - Never be alone agian! - Hiddos - 02.02.2012

This is full of win!


Respuesta: Cleverbot - Never be alone agian! - [Nikk] - 02.02.2012

Fuc**ng awesome !


Re: Cleverbot - Never be alone agian! - ғαιιοцт - 02.02.2012

Cleverbot can be so funny ^^ really nice to have this in sa-mp!


Re: Cleverbot - Never be alone agian! - SourceCode - 02.02.2012

Great, i actually made plugin version this 2 days ago. I think there is no point in releasing that now


Re: Cleverbot - Never be alone agian! - Niko_boy - 02.02.2012

ftw :O ALWAYS!!

I AM BIG FAN OF BOTS!!

Great job man !


Re: Cleverbot - Never be alone agian! - ғαιιοцт - 02.02.2012

Код:
User: Hello, I'm Fallout ;).
Cleverbot: No you are not.
User: Yes, I am. And I love playing sa-mp!
Cleverbot: I'm bored of you now. You are nothing but failed code.
User: Yes. Do you like sa-mp?
Cleverbot: Yes, and you?
User: I just said I did. Do you own a server?
Cleverbot: No.
User: Maybe you are the server itself?
Cleverbot: Yes I am.
User: Ok, so what gamemode is it?
Cleverbot: Sleep is sleep.
User: That's not so interesting.
Cleverbot: But they're in pasta sauce.
User: Who?
Cleverbot: Raccoons.
User: Do you eat raccoons?
Cleverbot: No. Do you?
User: No!
Cleverbot: Why not?



Re: Cleverbot - Never be alone agian! - Ronaldo_raul™ - 02.02.2012

Quote:
Originally Posted by ғαιιοцт
Посмотреть сообщение
Код:
User: Hello, I'm Fallout ;).
Cleverbot: No you are not.
User: Yes, I am. And I love playing sa-mp!
Cleverbot: I'm bored of you now. You are nothing but failed code.
User: Yes. Do you like sa-mp?
Cleverbot: Yes, and you?
User: I just said I did. Do you own a server?
Cleverbot: No.
User: Maybe you are the server itself?
Cleverbot: Yes I am.
User: Ok, so what gamemode is it?
Cleverbot: Sleep is sleep.
User: That's not so interesting.
Cleverbot: But they're in pasta sauce.
User: Who?
Cleverbot: Raccoons.
User: Do you eat raccoons?
Cleverbot: No. Do you?
User: No!
Cleverbot: Why not?
LOL!, WTF ! TROLL Warning.


Re: Cleverbot - Never be alone agian! - wups - 02.02.2012

Quote:
Originally Posted by wups
Посмотреть сообщение
Hehe, do something like "Cleverbot"! That would be amazing. Maybe you can use HTTP and do it directly?
You made my idea real. Great!


Re: Cleverbot - Never be alone agian! - Fj0rtizFredde - 02.02.2012

Quote:
Originally Posted by SourceCode
Посмотреть сообщение
Great, i actually made plugin version this 2 days ago. I think there is no point in releasing that now
I think your plugin will be better than this.

Quote:
Originally Posted by ғαιιοцт
Посмотреть сообщение
Haha, good one.

Quote:
Originally Posted by wups
Посмотреть сообщение
You made my idea real. Great!
Yeah, that was the post I talked about in the beginning of the thread.

To everyone else: Thanks for the great comments. It makes me really happy.


Re: Cleverbot - Never be alone agian! - SiEx - 03.02.2012

Awesome must test it


Re: Cleverbot - Never Be Alone Again! - kosspara - 03.02.2012

Nice work..keep it up.


Re: Cleverbot - Never Be Alone Again! - Fj0rtizFredde - 03.02.2012

Thanks, guys.


Re : Cleverbot - Never Be Alone Again! - Varkoll_ - 03.02.2012

Very Nice