[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
#2

Awesome and Epic!
Reply
#3

Actually, this is pretty cool not. Good job!
Reply
#4

Wow ... thanks!
Reply
#5

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

Nice and cool!. Good job
Reply
#7

Ragging would be gained only

Those bots are not feeling feelings
Reply
#8

This is full of win!
Reply
#9

Fuc**ng awesome !
Reply
#10

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

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

ftw :O ALWAYS!!

I AM BIG FAN OF BOTS!!

Great job man !
Reply
#13

Код:
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?
Reply
#14

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.
Reply
#15

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!
Reply
#16

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.
Reply
#17

Awesome must test it
Reply
#18

Nice work..keep it up.
Reply
#19

Thanks, guys.
Reply
#20

Very Nice
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)