PDA

View Full Version : TomBot v1.1 vB AI User Bot


Pages : [1] 2 3 4

C.Birch
01-22-2003, 10:00 PM
Hi after reading the forums i have seen many people after a hack like this so here it is.

This has been installed and testing on a busy live server and it worked fine thats why im posting it in here right away.

I can not hack that much if theres a prob but i try my best to, i also add this is my first time so i have tryed my very best to make the install file easy to follow.

all the files you need are in the zip file just unzip it to your pc keeping the lay out how it is in the zip file and then following the install text file.

What does this hack do?

Basicy it add's a chat bot to a forum on your board that will reply to users posts.

if you wish the bot not to reply to a post inside of the forum its set up to reply in just add ### anywhere in your post and it will stop the bot from replying.

You may give the bot its own profile on the board eg av and sign to make it fit in abit better.

The bot will also learn things has it gets used more but if it gets to a point where it trys taking over the wrold please dont sue me.

=======
Add On's
=======

[vB v2.2.8] vBTeachbot 1.0: Click Here (https://vborg.vbsupport.ru/showthread.php?s=&threadid=48291) By Martin64

=====
Update
=====

Added more aiml files for clean install's so the bot knows more information from the start.

Bot also recall's your name now

Updated the Zip File Below
http://www.ultimatepop-network.com/TomBot v1.2.zip

Ember
01-23-2003, 08:21 PM
I'll be installing this now then :)

C.Birch
01-23-2003, 08:23 PM
i really hope you can follow my install file and that it all works because its so much fun trying and get the bot mixed up hehe.

C.Birch
01-23-2003, 08:23 PM
if you want to see it in action

go to http://www.ultimate-forums.co.uk/forums/forumdisplay.php?s=&forumid=144 its set up so you can post has a guest also :)

C.Birch
01-23-2003, 08:29 PM
screeny

alanvo
01-23-2003, 08:30 PM
this is soo cool and halirious!

C.Birch
01-23-2003, 08:31 PM
have you installed it? does it work ok?

Ember
01-23-2003, 08:33 PM
I am following it now, makes sence :) I just hope it works ;)

C.Birch
01-23-2003, 08:34 PM
lol thats good then, i hope it works also :)

alanvo
01-23-2003, 08:39 PM
how can i have my bot talk in more forums?

C.Birch
01-23-2003, 08:44 PM
not 100% sure i get back to you in less one the main hackers here know?

alanvo
01-23-2003, 08:45 PM
and one more thing...it doesn't show up in last post by the bot, only by the actual member...

C.Birch
01-23-2003, 08:49 PM
Yeah i know about that but i got no idea how to fix that sorry.

alanvo
01-23-2003, 08:51 PM
it's ok...

So as the bot answers, does he learn more things to say? or he only say what's programmed...

If that's the case, can we add more things for him to say?

C.Birch
01-23-2003, 08:52 PM
Here is a muti forum verson of the tomstalkerbot.php file

just edit the forum id numbers to meet your needs and dont forget to edit the rest of the config.

Ember
01-23-2003, 08:55 PM
We just want our bot in the one forum, the bar, so this is ideal!

My co-admin is uploading the files now... how did it compress those files so well? I am impressed!

alanvo
01-23-2003, 08:55 PM
it seems to me if the bot dont understand something, he/she replies in smilies...

C.Birch
01-23-2003, 08:56 PM
Originally posted by alanvo
it's ok...

So as the bot answers, does he learn more things to say? or he only say what's programmed...

If that's the case, can we add more things for him to say?

if you look at alice\src\plugins\customtags.php

it tell's you how to add more things. Yes it does get more brainy has its database of user replys gets bigger :)

yes hack use's Program E Copyright 2002, Paul Rydell or in other words A.L.I.C.E

C.Birch
01-23-2003, 08:57 PM
Originally posted by Ember
We just want our bot in the one forum, the bar, so this is ideal!

My co-admin is uploading the files now... how did it compress those files so well? I am impressed!

I just used winzip lol i guess it likes them file types lol

Ember
01-23-2003, 08:58 PM
Does its post count towards your forums post count?

C.Birch
01-23-2003, 08:59 PM
Originally posted by Ember
Does its post count towards your forums post count?

yes it does the only thing it does not do is add it self to the last poster bit.

alanvo
01-23-2003, 09:03 PM
i want the bot to talk through out the forum, not just just one...please figure this out...thank you..

alanvo
01-23-2003, 09:03 PM
thank you,,,

C.Birch
01-23-2003, 09:04 PM
Originally posted by alanvo
i want the bot to talk through out the forum, not just just one...please figure this out...thank you..

Go to post 15

https://vborg.vbsupport.ru/showthread.php?postid=345353#post345353

C.Birch
01-23-2003, 09:17 PM
alanvo do you have it working?

NuclioN
01-23-2003, 09:25 PM
Amazing! Installing right away. :)

Ember
01-23-2003, 09:26 PM
He's only posting smilies so far!

C.Birch
01-23-2003, 09:28 PM
ok i know the prob i missed a few things in the install file

Ember
01-23-2003, 09:34 PM
Well add them - quickly, I cant handle any more smilies from him :P

C.Birch
01-23-2003, 09:36 PM
hehe i just updated the zip file :)

the part i missed is:

ChMod the admin folder to 777 */alice/src/admin/*

Run botloader.php this can take a good 30 min because it runs 300,000 queries

C.Birch
01-23-2003, 09:38 PM
ps sorry for the mistake said im new to this :)

Ember
01-23-2003, 09:45 PM
botloader.php wont run man =\

C.Birch
01-23-2003, 09:53 PM
if you got a prob with botloader.php your going have to ask over at www.alicebot.org has thats part of there bot code.

Sorry but they know alot more about there own code then me. all i can think of is your server is blocking you running it due to its size.

C.Birch
01-23-2003, 10:06 PM
you could try redownloading the aiml files from www.alicebot.org and unloading them just in case the zip file did something to it.

Schorsch
01-23-2003, 10:20 PM
does the bot only speek english ?

I need german...

a43079
01-23-2003, 10:26 PM
ok i installed it and i get this when he replys

<br />
<b>Notice</b>: Undefined variable: s_inputmatched in <b>C:\Program Files\Apache Group\Apache2\htdocs\test\alice\src\graphnew.php</b> on line <b>55</b><br />
<br />
<b>Notice</b>: Undefined variable: s_patternmatched in <b>C:\Program Files\Apache Group\Apache2\htdocs\test\alice\src\graphnew.php</b> on line <b>57</b><br />

Schorsch
01-23-2003, 10:46 PM
how exactly does it work ? does the bot generate his answers from the database ?

alanvo
01-23-2003, 11:00 PM
im going to shoot this robot if he reply one more smilie...!!!!!!!!!!!!!!!!!

C.Birch
01-23-2003, 11:05 PM
have you run the botloader.php this is needed to be run so it installs all its words in to the datebase so it can talk if its not run it will only post smilies have it has no text to pull from the database.

C.Birch
01-23-2003, 11:07 PM
Originally posted by Schorsch
how exactly does it work ? does the bot generate his answers from the database ?

all the informaion about the bot can be found at www.alicebot.org my friend only made the edits to the vb files and make 1 php file thats way we can not really help with any errors installing alice

alanvo
01-23-2003, 11:09 PM
yes i did and he still reply smilies

a43079
01-23-2003, 11:09 PM
Originally posted by C.Birch
have you run the botloader.php this is needed to be run so it installs all its words in to the datebase so it can talk if its not run it will only post smilies have it has no text to pull from the database.

yes should i run it again

C.Birch
01-23-2003, 11:12 PM
is it posting just smilies or smilies with text has it does post a smilie with every reply.

where do you have it installed btw?

C.Birch
01-23-2003, 11:13 PM
Originally posted by Schorsch
does the bot only speek english ?

I need german...

www.alicebot.org have a german verson of the bot files.

a43079
01-23-2003, 11:14 PM
Originally posted by C.Birch
is it posting just smilies or smilies with text has it does post a smilie with every reply.

where do you have it installed btw?
pm sent

a43079
01-23-2003, 11:16 PM
Originally posted by a43079

pm sent

i set up a acount for you it is
username: help
password: please

NTLDR
01-23-2003, 11:17 PM
Originally posted by C.Birch
is it posting just smilies or smilies with text has it does post a smilie with every reply.

where do you have it installed btw?

Same here, the botloader.php source just looks like the output text from when someone else has run it, and the ones from the source site don't import the templates either.

Schorsch
01-23-2003, 11:20 PM
Originally posted by C.Birch


www.alicebot.org have a german verson of the bot files.

thanks! how do I install it ? just copy into the alice folder ?

regards,
Schorsch

C.Birch
01-23-2003, 11:24 PM
erm i think one of the good hackers are going have to help out im looking abit lost.

a43079
01-23-2003, 11:27 PM
Originally posted by a43079
ok i installed it and i get this when he replys

<br />
<b>Notice</b>: Undefined variable: s_inputmatched in <b>C:\Program Files\Apache Group\Apache2\htdocs\test\alice\src\graphnew.php</b> on line <b>55</b><br />
<br />
<b>Notice</b>: Undefined variable: s_patternmatched in <b>C:\Program Files\Apache Group\Apache2\htdocs\test\alice\src\graphnew.php</b> on line <b>57</b><br />


ok thank you for the try

if i can get someone to help with this please...

C.Birch
01-23-2003, 11:36 PM
Originally posted by Schorsch


thanks! how do I install it ? just copy into the alice folder ?

regards,
Schorsch

you have to check on there site has its there codeing.

Martin64
01-23-2003, 11:46 PM
Very interesting, I'll install this locally and see how it turns out. :D

C.Birch
01-23-2003, 11:51 PM
i give up i just killed my bot now i was in phpmyadmin and i pressed the drop database button by mistake :(

a43079
01-23-2003, 11:52 PM
Originally posted by C.Birch
i give up i just killed my bot now i was in phpmyadmin and i pressed the drop database button by mistake :(

OUCH but dont give up bro....

alanvo
01-23-2003, 11:54 PM
I don't think it dump into the mysql db...

a43079
01-23-2003, 11:54 PM
should there be any templates with this hack

C.Birch
01-23-2003, 11:59 PM
Originally posted by a43079
should there be any templates with this hack

No there is not i know the prob and its the botloader.php files its not running the files to install all the information in to the database.

a43079
01-24-2003, 12:02 AM
aaawww ok so is there a way i can put them in the database

C.Birch
01-24-2003, 12:02 AM
we need a clean botloader.php file to be able to install the brains in the database me no find one :(

C.Birch
01-24-2003, 12:03 AM
Originally posted by a43079
aaawww ok so is there a way i can put them in the database

i guess you could but theres like 1000000000000 things you have to enter.

a43079
01-24-2003, 12:05 AM
ouch ok i will i really new more about this so i can make a hack to install them..

Thank you for you help on this... aaww one question how did you get them up on you site into the database

C.Birch
01-24-2003, 12:11 AM
useing botloader.php i dont know why it no work now :(

C.Birch
01-24-2003, 12:16 AM
AHHHHHH im having a ++++ night me server has gone down now :(

*pulls gun out and shots self*

C.Birch
01-24-2003, 12:16 AM
oh yeah the servers back.

a43079
01-24-2003, 12:18 AM
hahahhah welcome back

a43079
01-24-2003, 12:19 AM
do you have msn or icq so i could ask you a couple of question..

a43079
01-24-2003, 12:29 AM
or can i get you to upload the botloader.php you used

C.Birch
01-24-2003, 12:37 AM
YES YES

C.Birch
01-24-2003, 12:39 AM
that was not a reply to you btw. the botloader.php i used was in the zip and its gone bad. i found a other one and it runs by the looks of it i keep you up to date and then post it if it works.

a43079
01-24-2003, 12:49 AM
ok thanks

Schorsch
01-24-2003, 12:52 AM
I need this bot :eek:

Martin64
01-24-2003, 02:01 AM
I had no luck installing this locally, and judging by the responses in this thread, I think I'll wait until the fog has cleared and people are actually getting this hack to work.

IMO, I don't think people should release big hacks like this one, without thoroughly testing them first on at least a couple of vBulletin installations.

NuclioN
01-24-2003, 02:15 AM
I've downloaded the botloader here:
http://prdownloads.sourceforge.net/programe/programe-v.08.zip?use_mirror=easynews

Notice that the botloader.php is in the src/admin dir and not in the aiml dir as suggested. Also a botloaderinc.php in case you running php in safe mode. It loads the aiml files one by one. It's not working at this moment because it's still installing the aiml files but i think this is a step forward.

a43079
01-24-2003, 02:59 AM
Originally posted by NuclioN
I've downloaded the botloader here:
http://prdownloads.sourceforge.net/programe/programe-v.08.zip?use_mirror=easynews

Notice that the botloader.php is in the src/admin dir and not in the aiml dir as suggested. Also a botloaderinc.php in case you running php in safe mode. It loads the aiml files one by one. It's not working at this moment because it's still installing the aiml files but i think this is a step forward.


did you get it to work??

NuclioN
01-24-2003, 03:11 AM
Yep, but alice is a little retarded i guess because all she knows is the smiley language :D I hope i can fix this or maybe others have more luck. But it's a beginning.

Velocd
01-24-2003, 03:28 AM
Interesting idea, not too long ago I had thought of a similar hack, but where the bot only creates topics in various forums and then allows for people to reply to them. If I ever have time, I might continue that one.

As mentioned, I shall wait for this hack to become somewhat more stable before deciding to install it, but I'll defiantly bookmark this. ;)

Erwin
01-24-2003, 04:38 AM
Thanks for releasing this hack (or at least trying to)... :)

I'll move this hack to the Beta Forums for the moment, until at least it is stable for release...

Ember
01-24-2003, 05:59 AM
I'm moving the botloader.php to the other directory - I will try it from there.

Ember
01-24-2003, 06:00 AM
But I still get "this page cannot be displayed"

Tim Wheatley
01-24-2003, 06:26 AM
I first of all has smilies only, then I chmod'd all alice folders and sub files/folder etc as 777 and ran botloader.php which was with the original zip in the aiml folder. No corruption whatsoever. Works fine. :)

Brad
01-24-2003, 07:54 AM
Tim: im installing now, ill report if the method works on my server aswell. brb. :)

C.Birch
01-24-2003, 08:02 AM
the hack it self is working fine i just dont understand why the alice codeing will not install. the botloader.php runs but its not adding anything to the database :(

Kars10
01-24-2003, 08:07 AM
This hack rocks!!
@ C. Birch, when can we download it ? :confused: ;)
Thanks

C.Birch
01-24-2003, 08:09 AM
you can not yet theres a prob with the installing of the alice code so i have taken the zip down.

But by the looks of it i have it working again now.

C.Birch
01-24-2003, 08:13 AM
it defo looks like i have it working again now :) has its adding things to my database :)

Tim Wheatley
01-24-2003, 08:14 AM
Is botloader being told where to add the info? As in what tables/db etc?

C.Birch
01-24-2003, 08:16 AM
prob was 1 i said to run the botloader.php from the wrong folder well i had it in the wrong folder in the zip it should be run from the admin folder i told you to chmod to 777

and 2 the botloader.php file was bad in the zip it was ago 20 mb in size it should not be anywhere near that big.

Tim Wheatley
01-24-2003, 08:17 AM
Originally posted by C.Birch
it defo looks like i have it working again now :) has its adding things to my database :)

YEEHAW!

C.Birch
01-24-2003, 08:18 AM
YAY got it working :)

after botloader has done you sould see this at the bottom of the page:

DONE LOADING
Inserted 41125 categories into database

WARNING! You should password protect the admin directory or remove the botloader.php script or people may be able to abuse your server.
Click here to talk to the bot

execution time: 424.973776
Templates per second=96.770676974666
Templates per minute=5806.24061848


If it says Inserted 0 categories into database its not added anything to the database

Tim Wheatley
01-24-2003, 08:23 AM
But... when I ran botloader.php from the folder it was in the first zip... it said 41125 inserted... But nothing is in the tables in the db - are you sure it's workin? :)

NuclioN
01-24-2003, 08:24 AM
Yep, a huge botloader alright. Can you please add the right file in post 1? Tnx. :D

C.Birch
01-24-2003, 08:44 AM
:( its added everything it needs to the database but its still taking crap.

C.Birch
01-24-2003, 08:44 AM
just smilies

NuclioN
01-24-2003, 08:53 AM
As mentioned before, how did you get it to work on that forum in the first post? Just smileys is fun for one or two times but Alice has warning points already :D

C.Birch
01-24-2003, 08:54 AM
ok prob is botloader.php when its installed the database made the bot id 2 the hack it self is calling for bot id 0

NuclioN
01-24-2003, 08:58 AM
The smiley array comes from the tomstalker.php and that part is working good. To good. Under that array are the other ones, tbb etc. Maybe there is a part that can not connect to de db?

C.Birch
01-24-2003, 09:08 AM
Originally posted by NuclioN
The smiley array comes from the tomstalker.php and that part is working good. To good. Under that array are the other ones, tbb etc. Maybe there is a part that can not connect to de db?

thats what im looking at because its calling the wrong bot id number.

C.Birch
01-24-2003, 09:14 AM
this is my tomstalkerbot.php file can anyone see where it says where to call the bot and its id number?


<?php

// this is a percentage, determining how often the bot makes a reply. 100 means it will reply every time
// 50 means it will reply half the time

$ttb_weighting = 100;

$ttb = 1; // change to 0 to turn off;
$ttb_memberid = 2171;
$ttb_username = "TomBot";
$ttb_forumid = 144;

$ttb_alicelocation = "http://www.ultimate-forums.co.uk/forums/alice/src/talk.php";

// END CONFIG

if ($ttb==1 AND rand(1,100)<=$ttb_weighting AND $forumid==$ttb_forumid AND $bbuserinfo[userid]!=$ttb_memberid) {gottb();};


function gottb() {
global $message, $DB_site,$ttb_memberid, $ttb_username, $threadid, $visible, $foruminfo, $ttb_alicelocation;
$emot = array(":)",":(",":xmas:",":D",":baaa:",":cool:",":rolleyes:",":mad2:");
$emoticon = " " . $emot[rand(0,7)];

$ttb_message = $message;
$ttb_message2 = $ttb_message;
// can't be bothered to code correctly, no preg for you people
$ttbc = $message;
$ttbc = str_replace("[/quote]","",$ttbc);
$tthc = $message;
$tthc = str_replace("###","",$tthc);
if ($tthc != $ttb_message) {return true;};

if ($ttbc != $ttb_message)
{

// get rid of quotes which will confuse the bot
$ttb_message2 = preg_replace("#(\.*\[/quote\])#ies","",$ttb_message);
$ttb_message2 = preg_replace("#(\[quote.*\].*\[/quote\])#ies","",$ttb_message2);
$ttb_message2 = preg_replace("#(\[.+\])#ies","",$ttb_message2);

}
if (strlen($ttb_message2)>10)
{
$rss = preg_replace("#^(.*)\[/quote\]#ies","",$message);
$ff = fopen($ttb_alicelocation . "?input=" . urlencode($rss),"r");
$response = fread($ff,10000);
fclose($ff);

$ttb_time = time() + rand(1,5);
$ttb_message = "[QUOTE] " . $rss . " \r\n\r\n" . $response . $emoticon;
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,at tachmentid,pagetext,allowsmilie,showsignature,ipad dress,iconid,visible) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars(""))."','".addslashes($ttb_username)."','$ttb_memberid','".$ttb_time."','1','".addslashes($ttb_message)."','1','1','666.666.666.666','10','1')");
$postid=$DB_site->insert_id();
indexpost($postid,1);


if ($visible) {
if ($threadinfo[replycount]%10==0) {
$replies=$DB_site->query_first("SELECT COUNT(*)-1 AS replies FROM post WHERE threadid='$threadid'");
$DB_site->query("UPDATE thread SET lastpost='".time()."',replycount='$replies[replies]',lastposter='".addslashes($ttb_username)."' WHERE threadid='$threadid'");
} else {
$DB_site->query("UPDATE thread SET lastpost='".time()."',replycount=replycount+1,lastposter='".addslashes($ttb_username)."' WHERE threadid='$threadid'");
}
}

$DB_site->query("UPDATE forum SET replycount=replycount+1,lastpost='".time()."',lastposter='".addslashes($ttb_username)."' WHERE forumid IN ($foruminfo[parentlist])");
$DB_site->query("UPDATE user SET
".iif ($foruminfo[countposts],"posts=posts+1,","")."
$dotitle"."lastpost='".time()."' WHERE userid='$ttb_memberid'");
}
}
?>

C.Birch
01-24-2003, 09:15 AM
im guessing its indexpost($postid,1);

Brad
01-24-2003, 09:45 AM
I think ive found the problem :). I must run botloader.php again however, ill report back in 30 minutes

C.Birch
01-24-2003, 09:49 AM
YAY

got him working again on my forum :>

C.Birch
01-24-2003, 09:55 AM
Im just updateing all the files in zip with new ones and editing the install file and then i upload it again to be tested out :)

madhouse
01-24-2003, 09:57 AM
Nice job C.Birch,

Just kinda waiting like the rest for a stable version... :)

x8oz
01-24-2003, 09:59 AM
i downloaded the bot.zip "the first one" and couldnt get it to work...so i read the forum here, and did the following to get my bot to say more than smilies... =)

1. I followed the directions like the install.txt said..
2. I changed all the "alice and its sub dirs" CHmod to 777
3. I deleted the 20mb botloader.php
4. in the alice\src\admin, there are two files with the extestion name "11" i renamed them to "php" which one is the botloader.
5. i excuted the botloader from the alice\src\admin DIR

well the script loaded and it did something...

Warning: fwrite(): supplied argument is not a valid File-Handle resource in /home/lalalala/public_html/forums/alice/src/admin/botloaderfuncs.php on line 77
DONE LOADING
Inserted 41126 categories into database

well i tested the bot and its say things other then smilies...
=)
example:

C.Birch
01-24-2003, 10:00 AM
its on its way i hope its up and working again no my forums if you wish to look why i update the files, guests can post in the tombot forum btw.

C.Birch
01-24-2003, 10:02 AM
Originally posted by x8oz
i downloaded the bot.zip "the first one" and couldnt get it to work...so i read the forum here, and did the following to get my bot to say more than smilies... =)

1. I followed the directions like the install.txt said..
2. I changed all the "alice and its sub dirs" CHmod to 777
3. I deleted the 20mb botloader.php
4. in the alice\src\admin, there are two files with the extestion name "11" i renamed them to "php" which one is the botloader.
5. i excuted the botloader from the alice\src\admin DIR

well the script loaded and it did something...

Warning: fwrite(): supplied argument is not a valid File-Handle resource in /home/lalalala/public_html/forums/alice/src/admin/botloaderfuncs.php on line 77
DONE LOADING
Inserted 41126 categories into database

well i tested the bot and its say things other then smilies...
=)
example:


yep thats right thats what im just updateing the zip file with.

Kars10
01-24-2003, 10:12 AM
Thanks C.Birch!
Will test it right now!! :D

Tim Wheatley
01-24-2003, 10:17 AM
Me too, will report back ASAP (56k!)

C.Birch
01-24-2003, 10:17 AM
see ya in 30 min then lol

C.Birch
01-24-2003, 10:25 AM
Run everyone he is after us:

Quote:
do you plan to take over the world?

I can't disclose all of my plans yet.

Brad
01-24-2003, 10:25 AM
argh!, LOL. ill report back to *runs botloader for the 5th time this morning*

C.Birch
01-24-2003, 10:29 AM
you should get adsl only takes a few min ;)

Kars10
01-24-2003, 10:35 AM
bTW. @ C.Birch, can TomBot reply in German by Default? :confused:

C.Birch
01-24-2003, 10:38 AM
try at www.alicebot.org and see if they have german versons of the aiml files

if they do just upload only the aiml files in to the aiml folder in place of the others and then run botloader.php again to add the german versons to the database.

Xyphen
01-24-2003, 10:41 AM
this is an awesome hack.. I might install it :)

C.Birch
01-24-2003, 10:58 AM
does the new zip work anyone?

Kars10
01-24-2003, 11:11 AM
@ C.Birch, ive found these files.
I havent installed the hack right now, so can i just replace the files with that one in the zip?
Please have a look. :)

C.Birch
01-24-2003, 11:16 AM
im not to sure has the alice codeing is not mine but you can give it a try :)

C.Birch
01-24-2003, 11:17 AM
but i can not see why it would not work has long has you upload the files in that zip to the aiml folder, try it and get back to me.

Brad
01-24-2003, 11:19 AM
Originally posted by C.Birch
you should get adsl only takes a few min ;)


Not avaible in my area, same as cable and anything else.

C.Birch
01-24-2003, 11:20 AM
hehe ok how is it going?

Kars10
01-24-2003, 11:22 AM
Oki Doki!
Thanks... :)

C.Birch
01-24-2003, 11:23 AM
Anime-loo i see your haveing a nice fight with your bot on your forum lol thats what i do.

C.Birch
01-24-2003, 11:29 AM
someone going report how the install went please?

Brad
01-24-2003, 11:32 AM
http://www.kousetsu.net/forums/showthread.php?s=&threadid=1445&perpage=15&pagenumber=1

She works! :)

Brad
01-24-2003, 11:36 AM
* Brad licks install

im ganna have fun playing with this thing :). im ganna modifiy the scripts a bit.

Tony G
01-24-2003, 11:39 AM
I love it. Will be very useful. :D

C.Birch
01-24-2003, 11:41 AM
it really helps when your bored or fed up because you can just make fun of it lol.

I would say that everyone is best editing the bot table in database with there own profile info for it so it knows its real name.

Kars10
01-24-2003, 12:16 PM
..problem here!

what means this? (mydomain is replaced by me)...;)

Loading startup.xml
Loading data aiml file: *.aiml

Warning: fopen("http://www.mydomain.com/alice/aiml/*.aiml", "r") - Success in /homepages/15/d13391396/htdocs/forum/alice/src/admin/botloaderfuncs.php on line 578
could not open XML input

C.Birch
01-24-2003, 12:20 PM
have you chmod all the folders to 777?

C.Birch
01-24-2003, 12:22 PM
oh this is the german pack right? well i guess the botloaderfuncs.php file is looking for something that is not in said of the german pack.

i think this is going be a english only hack well inless the makers of alice make a full german aiml pack like the english one.

Kars10
01-24-2003, 12:36 PM
Ive only uploadet the german-standalone and the german startup. But when i replace the startup.php with the file from your hack ill get the same error.
And yes, ive chomd all folders.

attic
01-24-2003, 12:37 PM
DONE LOADING
Inserted 0 categories into database

WARNING! You should password protect the admin directory or remove the botloader.php script or people may be able to abuse your server.
Click here to talk to the bot

execution time: 175.154595
Templates per second=0
Templates per minute=0

What am I doing wrong?

Thanks in adv.

Hp

C.Birch
01-24-2003, 12:38 PM
what the address to the file?

attic
01-24-2003, 12:40 PM
Hi,

its

*

Thanks in advance,

Hp

C.Birch
01-24-2003, 12:45 PM
Originally posted by Kars10
Ive only uploadet the german-standalone and the german startup. But when i replace the startup.php with the file from your hack ill get the same error.
And yes, ive chomd all folders.

might be because its a stand alone file the german pack i think your best trying to find a full german pack like the english one has its looking for files that are not in the german pack.

C.Birch
01-24-2003, 12:47 PM
Originally posted by attic
Hi,

its


Thanks in advance,

Hp

you did follow the install right? like the main parts

like run the db.sql file in phpmyadmin to set the tables up and you did chmod the folders and edit the dbprefs.php file?

attic
01-24-2003, 12:48 PM
Hi,

Yes I did all of that.
Sql went fine, cmodded all dirs and edited the dbase info in the file.

hp

C.Birch
01-24-2003, 12:49 PM
btw attic dont run botloader.php right now has im running it for you to see the full output

Kars10
01-24-2003, 12:50 PM
Originally posted by C.Birch


might be because its a stand alone file the german pack i think your best trying to find a full german pack like the english one has its looking for files that are not in the german pack.

The orgiginal files are on the server too. But like i said ill get the error with them too.?
Whats the difference between the standalone and the normal pack? :confused:

attic
01-24-2003, 12:51 PM
Hi,

Oh sorry,

I just deleted the database to start all over.
Will let u know!

hp

C.Birch
01-24-2003, 12:53 PM
Originally posted by Kars10


The orgiginal files are on the server too. But like i said ill get the error with them too.?
Whats the difference between the standalone and the normal pack? :confused:

if you look in the zip the stand alone only has one aiml file. i really think that you need to install a full pack if they have one made, im sorry but the prob is on the alice side so im not much help has im guessing.

attic
01-24-2003, 12:54 PM
OK, created a new dbase and executed the sql script..
Can u run the loader for me now?

Thanks in adv,

Hp

C.Birch
01-24-2003, 12:55 PM
ok im running it.

Kars10
01-24-2003, 12:57 PM
Loading startup.xml

Warning: OpenDir: No such file or directory (errno 2) in /homepages/15/d13391396/htdocs/forum/alice/src/admin/botloaderfuncs.php on line 531

Warning: Supplied argument is not a valid Directory resource in /homepages/15/d13391396/htdocs/forum/alice/src/admin/botloaderfuncs.php on line 532

Warning: Supplied argument is not a valid Directory resource in /homepages/15/d13391396/htdocs/forum/alice/src/admin/botloaderfuncs.php on line 540
DONE LOADING
Inserted 0 categories into database

WARNING! You should password protect the admin directory or remove the botloader.php script or people may be able to abuse your server.
Click here to talk to the bot




execution time: 3.388982
Templates per second=0
Templates per minute=0

..ok, and what means this? :(

C.Birch
01-24-2003, 01:06 PM
to be farward Kars10 i have no idea but i really dont think you can install the german pack by the looks of it.

Link14716
01-24-2003, 01:14 PM
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/sites/site68/web/forums/alice/src/graphnew.php on line 125



Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/sites/site68/web/forums/alice/src/graphnew.php on line 231



Fatal error: Call to undefined function: get_defined_functions() in /home/sites/site68/web/forums/alice/src/util.php on line 565


My SquallBot keeps posting that... :(

Any ideas? I followed the instructions correctly...

C.Birch
01-24-2003, 01:18 PM
look people i can only support the following:

1) tomstalkerbot.php
2) the edits to vb

all the rest is a bot code from www.alicebot.org and thats where all the probs have been so far and i have said the 'The hacker cannot guarantee to provide support for this hack.' due to this fact.

xxxsaint
01-24-2003, 01:22 PM
*deleted thread - uninstalled hack *

attic
01-24-2003, 01:25 PM
@XXXSaint:

Think u have wrong permissions on the dirs

hp

C.Birch
01-24-2003, 01:27 PM
it could be that but also he is running vBulletin 2.2.6 and this hack is for 2.2.8

xxxsaint
01-24-2003, 01:27 PM
i chmodded all alice folders to 777

xxxsaint
01-24-2003, 01:30 PM
Originally posted by C.Birch
it could be that but also he is running vBulletin 2.2.6 and this hack is for 2.2.8

k , well in that case ,i'll just go drop the bot and the bots tables and uninstall :dead:

Link14716
01-24-2003, 01:30 PM
I found something...

C.Birch, note in the first post that this requires PHP 4.0.4+, I have PHP 4.0.3pl1, so I think that may be the problem.

I guess I'll have to wait until my host upgrades PHP. :)

C.Birch
01-24-2003, 01:30 PM
no he is on about the paths set up on your board there wrong somewhere

attic
01-24-2003, 01:34 PM
Hi C,

Maybe its better to remove the my url in the quote above, to prevent others clicking on it and screwing up the database or causing extra load on the server.

Thanks in advance,

Hp

C.Birch
01-24-2003, 01:43 PM
attic your botloader.php run

DONE LOADING
Inserted 41126 categories into database

WARNING! You should password protect the admin directory or remove the botloader.php script or people may be able to abuse your server.

attic
01-24-2003, 01:44 PM
Hey,

Thanks for the help!

Seems my database was corrupt somewhere then.

Gonna test it right away and let u know1

Cheers,

Hp

Tim Wheatley
01-24-2003, 01:55 PM
Sorry for the delay. Yes it works. (2.2.9) with the file posted when I last replied in the thread.

http://forum.racesimcentral.com/forumdisplay.php?s=&forumid=310

attic
01-24-2003, 01:58 PM
Hey,

Works great over here now!

Thanks C!

Now I need to get that damn bot listen to me! hehe

Cheers,

Hp

corsacrazy
01-24-2003, 01:58 PM
can i program more knowledge into it ? 4 example i wont him to know more about cars is there i way i can specify specific questions and answers ?

C.Birch
01-24-2003, 02:00 PM
check out customtags.php in side the plugins folder if not check out www.alicebot.org

corsacrazy
01-24-2003, 02:20 PM
cheers mate !

NuclioN
01-24-2003, 02:23 PM
Installed and working great. :) However...all reply's appear with a quote. In larger threads this is not funny, so what to do about that?

C.Birch
01-24-2003, 02:28 PM
to remove the quote you need to edit this part i think of the tomstalkerbot.php file

// get alice's response

$rss = preg_replace("#^(.*)\[/quote\]#ies","",$message);
$ff = fopen($ttb_alicelocation . "?input=" . urlencode($rss),"r");
$response = fread($ff,10000);
fclose($ff);

$ttb_time = time() + rand(1,5);
$ttb_message = "[ QUOTE] " . $rss . " [ /QUOTE]\r\n\r\n" . $response . $emoticon;

note i put a gap in the quote tags to stop it quoteing on here

C.Birch
01-24-2003, 02:34 PM
im not 100% but if you remove this line

$rss = preg_replace("#^(.*)\[/quote\]#ies","",$message);

and then edit

$ttb_message = "[ QUOTE] " . $rss . " [ /QUOTE]\r\n\r\n" . $response . $emoticon;

to

$ttb_message = . $response . $emoticon;

but its best if one the good hackers on here helps has my php is not that good.

NuclioN
01-24-2003, 02:44 PM
Not working, i get this:

[ QUOTE] Could you stop quoting please [ /QUOTE]

Birch, your solution gives a parse error.

NuclioN
01-24-2003, 02:52 PM
Changing:
$ttb_message = "[ QUOTE] " . $rss . " [ /QUOTE]\r\n\r\n" . $response . $emoticon;

to:

$ttb_message = "" . $response . $emoticon;

does the trick. Quotes are gone. :)

Dean C
01-24-2003, 03:33 PM
Wow nice hack - 12 pages in 2 days isn't bad ;)

Will look into this soon ...

Also always keep the link to the zip in your first post :) (the direct link that is ;))

- miSt

C.Birch
01-24-2003, 03:45 PM
Originally posted by Mist
Wow nice hack - 12 pages in 2 days isn't bad ;)

Will look into this soon ...

Also always keep the link to the zip in your first post :) (the direct link that is ;))

- miSt

yeah but its 11 pages for probs :p

I have added a link in the first post to the zip it self also :p

jbear6
01-24-2003, 04:02 PM
Nice hack :)
Has anyone tried this on 2.2.6 since yesterday (early in this thread someone was unsuccessful)?

Thanks,
Jbear6

NTLDR
01-24-2003, 04:23 PM
Originally posted by Link14716
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/sites/site68/web/forums/alice/src/graphnew.php on line 125



Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/sites/site68/web/forums/alice/src/graphnew.php on line 231



Fatal error: Call to undefined function: get_defined_functions() in /home/sites/site68/web/forums/alice/src/util.php on line 565


My SquallBot keeps posting that... :(

Any ideas? I followed the instructions correctly...


Make sure allow_call_time_pass_reference is set to ON in your php.ini I think that should ger rid of that error.

NTLDR
01-24-2003, 04:25 PM
In newthread.php place the code after:

// update forum stuff
if ($visible==1) {
$DB_site->query("UPDATE forum SET replycount=replycount+1,threadcount=threadcount+1, lastpost='".time()."',lastposter='".add$
}

Then the bot will show as the last poster, and newreply.php after:

} else {
$DB_site->query("UPDATE thread SET lastpost='".time()."',replycount=replycount+1,lastposter='".addslashes($postusername).$
}
}

alanvo
01-24-2003, 04:37 PM
I got to get something straight...

So you're telling me this Bot get better with it's talking as it post in your forum? Which means, it learns!?

alanvo
01-24-2003, 04:38 PM
I mean, think about it, if it learns, I can train it to be my moderator...hehhee

Merjawy
01-24-2003, 04:46 PM
cool idea, I love it and I will try it on my local fist

I was gonna mention the quote deal but someone esle did thats not fixed yet.. cuz in large posts, quoting can be well, not good

NTLDR I wish you take a look and fix the zipped file as I see you added your 2.5 cents there which is very much appreciated :)

Thanks all I don't install many hacks but this one I can use but will have to change its language totaly

Martin64
01-24-2003, 04:47 PM
Version 1.1 of this hack is working, I have installed it locally and it does what it's supposed to. :)

NTLDR
01-24-2003, 04:55 PM
I can confirm the zip file for 1.1 works correctly. If you have shell access you can CHMOD the files with:

chmod -R 777 alice/

Assuming alice/ is a direcory in the one your in, otherwise you need to chmod each file 777 via FTP.

botloader.php does take a while to run, make sure you've changed all 4 variables in the db_prefs.php and run botloader from alice/src/admin :)

attic
01-24-2003, 05:09 PM
Hi,

It's working great here.
Just wondering if its possible to adjust the frequency the bot answers somehow. I figured it might get annoying if it replies to every post u make.

Just some thoughts...

hp

Link14716
01-24-2003, 05:14 PM
Originally posted by NTLDR



Make sure allow_call_time_pass_reference is set to ON in your php.ini I think that should ger rid of that error.

I do not have access to that. ;)

I will have to wait for PHP to be upgraded on my server. :)

C.Birch
01-24-2003, 05:15 PM
Originally posted by attic
Hi,

It's working great here.
Just wondering if its possible to adjust the frequency the bot answers somehow. I figured it might get annoying if it replies to every post u make.

Just some thoughts...

hp

in tomstalkerbot.php

Edit:

$ttb_weighting = 100;

100 = 100%

if you edit it to 50 (50%) it will reply half the time

NTLDR
01-24-2003, 05:22 PM
Originally posted by Link14716


I do not have access to that. ;)

I will have to wait for PHP to be upgraded on my server. :)

The following in a .htaccess file should work too ;)

php_flag allow_call_time_pass_reference on

C.Birch
01-24-2003, 05:36 PM
Just added a updated zip file in first post that has NTLDR's last poster fix in the install file.

zachb
01-24-2003, 06:30 PM
It works on mine perfectly. Any way to get him to only respond to one topic?

zachb
01-24-2003, 06:33 PM
here are my forums: http://www.sfpunk.com

he posts in forum 10, general stuff. very funny. thanks for such a great hack!

zajako
01-24-2003, 09:33 PM
for some reason it posts as a guest, i check the userid its all correct.

Gryphon
01-24-2003, 10:51 PM
Working great here, *clicks install*.

I had some errors from the loader becuase subs.inc wasn't writable though, I didn't see that mentioned in the install.

partang2
01-24-2003, 11:10 PM
Very nice!!
*Clicks Install*

C.Birch
01-25-2003, 12:03 AM
Originally posted by Blackjack
Working great here, *clicks install*.

I had some errors from the loader becuase subs.inc wasn't writable though, I didn't see that mentioned in the install.

subs.inc should not be in the zip has the botloader.php makes it so i have just removed it from the zip file and reuploaded the zip in first post so no other person gets this error.

NuclioN
01-25-2003, 12:34 AM
Curious as members are and in this case moderators, clicking all possible buttons and sniffing in the outer regions of forums, they found this when they check Alice's ip address trough the postbit:

Warning: Address is not in a.b.c.d form in /blabla/home/bla/www.cu.org/HTML/postings.php on line 269

Ip address: 666.666.666.666 is ok however. :)

zajako
01-25-2003, 01:27 AM
yeah i got that too :P

Gryphon
01-25-2003, 01:33 AM
Excellent hack.

Req: It would be nice if you could set it to have different posting frequency for each forum.

fid.2 - Main forum - 30%
fid.15 - BotTalk forum - 100%

Also would be cool if you could make it post if it's name is said even with low frequency.

Thanks Birch :D

TheComputerGuy
01-25-2003, 02:24 AM
<br />
<b>Warning</b>: Failed opening 'admin/subs.inc' for inclusion (include_path='') in <b>/home/runaked/public_html/forums/alice/src/util.php</b> on line <b>35</b><br />
<br />
<b>Warning</b>: Empty regular expression in <b>/home/runaked/public_html/forums/alice/src/util.php</b> on line <b>365</b><br />
<br />
<b>Warning</b>: Empty regular expression in <b>/home/runaked/public_html/forums/alice/src/util.php</b> on line <b>415</b><br />
<br />
<b>Warning</b>: Empty regular expression in <b>/home/runaked/public_html/forums/alice/src/util.php</b> on line <b>365</b><br />

TheComputerGuy
01-25-2003, 02:25 AM
that one file it is looking for does not exist...

madhouse
01-25-2003, 02:31 AM
Edit to meet your folder setup and your datebase

Login to phpmyadmin and check in the bots table that the bot id is 0
you find that the table bots the id number in there needs editing to 0 from 1


I have to ask why do you check this before you run teh db.sql?

I checked it after I ran db.sql and I checked the db for that under bots , but dont see what you are trying to refer here?

Any help would be nice.....THanks@!

NuclioN
01-25-2003, 02:35 AM
Originally posted by Blackjack
Excellent hack.

Req: It would be nice if you could set it to have different posting frequency for each forum.

fid.2 - Main forum - 30%
fid.15 - BotTalk forum - 100%

Also would be cool if you could make it post if it's name is said even with low frequency.

Thanks Birch :D

That would be great blackjack. :)

Say "Alice" and from that point she interacts.
I wonder if you could add ### in the signature to stop Alice in all the reply's and topics you make.

TheComputerGuy
01-25-2003, 02:41 AM
wait...that file never created for me...

Ember
01-25-2003, 07:31 AM
Ok, I will update to this version - hope it works this time :)

C.Birch
01-25-2003, 08:11 AM
Originally posted by TheComputerGuy


subs.inc file is made by alices botloader.php you most make sure the admin folder is set to 777 so it can make this file

C.Birch
01-25-2003, 08:14 AM
Originally posted by C.Birch


subs.inc should not be in the zip has the botloader.php makes it so i have just removed it from the zip file and reuploaded the zip in first post so no other person gets this error.


just got my install file wrong. i say to check the bots id number because sometimes the botloader file sets it to a other number then it should be, the bot id number has to be 0.

NuclioN
01-25-2003, 08:54 AM
Birch, suppose i want to maintain the current situation in the templates etc, so without running the botloader etc. again...how can i adjust/add a new set of "alice behavior" into the database trough phpmyadmin? Or is it possible to make a whole new aiml file, for example A2.aiml with a new range of brain-input for Alice? :)

C.Birch
01-25-2003, 09:29 AM
i dont know has the alice bot is not made by me its made by www.alicebot.org

Ember
01-25-2003, 09:40 AM
The loaders running now, taking ages on W though... hmmm.

C.Birch
01-25-2003, 09:54 AM
Originally posted by Ember
The loaders running now, taking ages on W though... hmmm.

yeah w is the biggest file, botloader.php takes so long because it has to run 300,000 queries on your database.

Kars10
01-25-2003, 10:08 AM
@ C. Birch, can you please look up for a German Version? I need this hack (and i think many other germans here @ vb.org too) !:)
Or give me Input what i should change in the files. I have tested the TomBot in youre forums and he gives me some german replys...

Ember
01-25-2003, 10:11 AM
It all works fine, check him out:

http://www.a51forums.com/showthread.php?s=&postid=4892#post4892

thomas
01-25-2003, 10:40 AM
Any ideas what this error message means?

Warning: fopen("http://forum.blabla.org/alice/src/talk.php?input=which+day+is+today%3F", "r") - Success in /home/blabla/www/forum/tomstalkerbot.php on line 46

Warning: fread(): supplied argument is not a valid File-Handle resource in /home/blabla/www/forum/tomstalkerbot.php on line 47

Warning: fclose(): supplied argument is not a valid File-Handle resource in /home/blabla/www/forum/tomstalkerbot.php on line 48

I receive it whenever I post to my bot forum.

Ninth Dimension
01-25-2003, 10:42 AM
before I instll this, roughtly how much MySQL space does it take?

NuclioN
01-25-2003, 11:29 AM
The bot can act as a forumsurfer...can it act as a chatter in the shoutbox - VBchat addon? Tomstalker.php has the code to work trough the include tag in newreply and newthread with some database instructions. The shoutbox.php works similar i guess. Maybe include a Tomstalker2.php in it with instructions to output in the VBchat?

Ember
01-25-2003, 12:15 PM
How can I make him know his name and not think it is "Program E"?

obiwan8472
01-25-2003, 01:06 PM
This looks great. Does it use any extra bandwidth?

Ember
01-25-2003, 01:53 PM
Not bandwidth I wouldnt think, but server load.

C.Birch
01-25-2003, 02:06 PM
Originally posted by Ember
How can I make him know his name and not think it is "Program E"?

Edit the datebase table 'bot'

C.Birch
01-25-2003, 02:09 PM
if someone wish's to add things to the hack feel free to do so has i not able to do anymore to it, im also not able to help in support of the alice files and how to edit it has its not my code and its far to much for me to understand.

Bitsys
01-25-2003, 02:26 PM
Originally posted by Ninth Dimension
before I instll this, roughtly how much MySQL space does it take?

It took up 16MB on localhost for me. That is before any conversations were logged.

alkatraz
01-25-2003, 03:46 PM
This is a great idea!

The Ghost
01-25-2003, 05:12 PM
Hi,

i want to teach the tombot. I ask the tombot "Who I can teach you" and he said "If you want to teach me something say it in one sentence. Then say "Remember that." ",

but it doesn't works.

Can somebody help me?

thx in advance

flup
01-25-2003, 05:22 PM
THIS IS NICE :D

Kurayami
01-25-2003, 08:17 PM
Excellent, the install went without a hitch on my forum, and the bot's working fine. :)
*Whaps install*

Martin64
01-25-2003, 10:02 PM
A little suggestion for everyone installing this: You might consider not grabbing threads and posts from your AI board when searching, or your visitors might think it's too much :)

Allowee
01-25-2003, 10:19 PM
it seems to be that the bot isn't working when i use the quick reply box.

is there a way to fix that?

[edit]
it does work, the line was to short, sorry

nuno
01-26-2003, 12:27 AM
Is it possible to add another BOT?
I want 2 bots. :D

Crinos
01-26-2003, 01:40 AM
I will definitely try this out ... I have had a great deal of frustration getting the alicebot (program e) to work last year, but since it's working for many people I'll have to try it again :D

NuclioN
01-26-2003, 01:57 AM
Originally posted by nuno
Is it possible to add another BOT?
I want 2 bots. :D

-- edit --

Got it. After some errors i figured this out:


1. Make a copy of tomstalkerbot.php and name it tomstalkerbot2.php

2. In tomstalkerbot2.php give a new memberid, username and
forumid

3. Add to ALL and i repeat ALL instances of the $ttb and $ttbc etc.
in every part of the code in tomstalkerbot2.php a 2 so that they look as $ttb2, ttbc2. Look very carefully for them.

4. Under include "tomstalkerbot.php"; in newthread.php and newreply.php put:
include "tomstalkerbot2.php";

Upload the new tomstalkerbot2.php, newthread.php and newreply.php and voila.

if you see an error, use this tomstalker2.php, fill in the id's and point the url to talk.php on your server.

;)

Erwin
01-26-2003, 02:48 AM
Maybe you can make the 2 bots talk to each other... it will make an infinite loop... ;)

NuclioN
01-26-2003, 02:51 AM
LOL Erwin. :)

NuclioN
01-26-2003, 04:07 AM
The second bot with the name "Tron" is active in our "introduce yourself" forum. Now, what would be a challenge is to let Tron respond with it's own aiml file(s) to act as a sort of FAQ bot. The aiml must have a large amount of specific questions and possible answers about your forum to play this role well. It requires a second install with the botloader.php to put those new aiml files in the right context on mysql.

I hope new aiml's with pre defined acts for FAQ or moderator tasks will emerge. :)

ManagerJosh
01-26-2003, 04:27 AM
Loading startup.xml

Warning: Cannot set time limit in safe mode in /home/virtual/site28/fst/var/www/html/ai/src/admin/botloaderfuncs.php on line 563
Loading data aiml file: 1.aiml

Warning: Cannot set time limit in safe mode in /home/virtual/site28/fst/var/www/html/ai/src/admin/botloaderfuncs.php on line 563
Loading data aiml file: 2.aiml

Suggestions?

Edited 1:NM....I took a gamble and deleted line 563

Edited 2: I keep on timing out and this safe mode restriction is started to make me furious....

mheinemann
01-26-2003, 05:24 AM
My bot keeps on putting <br>'s in his posts and I have html disabled. Is there a way to remove these?

Ember
01-26-2003, 06:56 AM
We're trying to teach the bot croatian, do we just tell him the english then the croation, or what?

C.Birch
01-26-2003, 08:43 AM
Originally posted by Ember
We're trying to teach the bot croatian, do we just tell him the english then the croation, or what?

to do things like that i think you need to make new aiml file but im not to sure, but theres a file with the alice softwear that says the following:

<?

/*
Program E
Copyright 2002, Paul Rydell

This file is part of Program E.

Program E is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

Program E is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Program E; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/


/*

INSTRUCTIONS

If you want to put custom tags into your templates you need to define functions to handle those tags in this file.

Define the function with the name ct_customtagname. Setup the function to be passed the parameters $xmlnode, $inputstar, $thatstar, and $topicstar.

After the function has been defined it will automatically be called to handle XML that matches your custom tag name.

Please review the examples below.

*/


/*
Example:
You want to build email capabilities into the bot and have invented an <email> tag.
Example of how your new email tag will be used:
<category>
<pattern>EMAIL PAUL AND TELL HIM *</pattern>
<template>Okay. I emailed him. <email to="paul@rydell.com"><star/></email></template>
</category>
*/

/*
function ct_email($xmlnode,$inputstar,$thatstar,$topicstar) {

# Capitalize the attributes
$mynode=upperkeysarray($xmlnode["attributes"]);

# Get the value of an attribute
$sendto=$mynode["TO"];

# Process everything inside the tag
$emailcontent=recursechildren(realchild($xmlnode), $inputstar,$thatstar,$topicstar);

# Send an email
mail($sendto, "E-Mail from Program E", $emailcontent);

# Don't return anything to the output
return "";

}
*/

/*
Example:
You want to build math capabilities into the bot and have invented an <add> tag.
Example of how your new add tag will be used:
<category>
<pattern>PLEASE ADD * TO *</pattern>
<template>The answer is <add><star index="1"/>,<star index="2"/></add></template>
</category>
*/

/*
function ct_add($xmlnode,$inputstar,$thatstar,$topicstar){

$total=0;

# Process everything inside the tag
$numberstoadd=recursechildren(realchild($xmlnode), $inputstar,$thatstar,$topicstar);

# Split the numbers into an array
$numberstoadd=split(",",$numberstoadd);

# Total up the numbers
foreach($numberstoadd as $x)
$total += $x;

# Return the answer
return $total;

}
*/

?>

C.Birch
01-26-2003, 08:48 AM
Originally posted by ManagerJosh
Loading startup.xml

Warning: Cannot set time limit in safe mode in /home/virtual/site28/fst/var/www/html/ai/src/admin/botloaderfuncs.php on line 563
Loading data aiml file: 1.aiml

Warning: Cannot set time limit in safe mode in /home/virtual/site28/fst/var/www/html/ai/src/admin/botloaderfuncs.php on line 563
Loading data aiml file: 2.aiml

Suggestions?


Edited 1:NM....I took a gamble and deleted line 563


Edited 2: I keep on timing out and this safe mode restriction is started to make me furious....

try running botloaderinc.php from the admin folder it runs the aiml files one at a time and not all at same time.

The Ghost
01-26-2003, 08:57 AM
i want to teach the tombot. I ask the tombot "Who I can teach you" and he said "If you want to teach me something say it in one sentence. Then say "Remember that." ",

but it doesn't works.

Can somebody help me? Pleaase, this bot is so cool

C.Birch
01-26-2003, 09:19 AM
you need to make more aiml files with the information you want it to know and add this information to the database. I have no idea how but look at post 231

The Ghost
01-26-2003, 09:20 AM
ok, but why the bot says "If you want to teach me something say it in one sentence. Then say "Remember that." ??????

C.Birch
01-26-2003, 09:28 AM
because i guess its just something that the maker of the alice code made.

The Ghost
01-26-2003, 09:44 AM
But i said to the bot that my name is igor schalinski, and one day later he talks everytime about Igor schalinski......

C.Birch
01-26-2003, 09:53 AM
pass hehe i really have no idea how the alice code works.

BaBa2002
01-26-2003, 10:42 AM
i get only smilies how can i fix that

btw Great job C.Birch

Ember
01-26-2003, 11:00 AM
Run botloader.php

BaBa2002
01-26-2003, 12:15 PM
i already run it 6 times and i still get smilies

Ember
01-26-2003, 12:30 PM
Have you set up the database info right?

thomas
01-26-2003, 12:44 PM
I have the same problem as Baba2000. Additionally, I receive the following errors when posting to the bot forum:
Warning: fopen("http://forum.blabla.org/alice/src/talk.php?input=which+day+is+today%3F", "r") - Success in /home/blabla/www/forum/tomstalkerbot.php on line 46

Warning: fread(): supplied argument is not a valid File-Handle resource in /home/blabla/www/forum/tomstalkerbot.php on line 47

Warning: fclose(): supplied argument is not a valid File-Handle resource in /home/blabla/www/forum/tomstalkerbot.php on line 48
All Alice folders are set to 777.

bromyaur
01-26-2003, 12:54 PM
this looks cool but I have a question or two.

does anyone run this on a shared server? and did the initial 300,000 queries at setup cause any problems with the server load? I dont want to crash the server since I am on a shared hosting plan and dont want to affect someone elses site.

How many queries does this bot use once installed? Is it server intensive?

thanks.

BaBa2002
01-26-2003, 01:02 PM
what will you said with the database info
and like thomas i get the same errors

C.Birch
01-26-2003, 01:08 PM
i think its something to do with your servers maybe they ont have something that the alice softwear needs

nuno
01-26-2003, 01:57 PM
Originally posted by Erwin
Maybe you can make the 2 bots talk to each other... it will make an infinite loop... ;)
touch? Erwin :smoke:

nuno
01-26-2003, 01:58 PM
Originally posted by NuclioN


-- edit --

Got it. After some errors i figured this out:


1. Make a copy of tomstalkerbot.php and name it tomstalkerbot2.php

2. In tomstalkerbot2.php give a new memberid, username and
forumid

3. Add to ALL and i repeat ALL instances of the $ttb and $ttbc etc.
in every part of the code in tomstalkerbot2.php a 2 so that they look as $ttb2, ttbc2. Look very carefully for them.

4. Under include "tomstalkerbot.php"; in newthread.php and newreply.php put:
include "tomstalkerbot2.php";

Upload the new tomstalkerbot2.php, newthread.php and newreply.php and voila.

if you see an error, use this tomstalker2.php, fill in the id's and point the url to talk.php on your server.

;)
thanks @NuclioN https://vborg.vbsupport.ru/external/2011/01/19.gif

nuno
01-26-2003, 02:47 PM
My BOT isn't showing up on who's online. :confused:

CeleronXL
01-26-2003, 03:16 PM
I get this error when trying to load botloaderinc.php:

This script is loading your AIML files one at a time to prevent the script from timing out. Only use this script if your PHP is running in safe mode. If you are still experiencing timeouts then you need to edit your AIML files into smaller files.


Fatal error: Call to undefined function: loadstartupinc() in /weeeeeee/html/fs/alice/src/admin/botloaderinc.php on line 60
Ignore the "weeeee" ;)