PDA

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


Pages : [1] 2 3 4

C.Birch
23 Jan 2003, 21:10
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 (http://www.vbulletin.org/forum/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
23 Jan 2003, 21:21
I'll be installing this now then :)

C.Birch
23 Jan 2003, 21:23
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
23 Jan 2003, 21:23
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
23 Jan 2003, 21:29
screeny

alanvo
23 Jan 2003, 21:30
this is soo cool and halirious!

C.Birch
23 Jan 2003, 21:31
have you installed it? does it work ok?

Ember
23 Jan 2003, 21:33
I am following it now, makes sence :) I just hope it works ;)

C.Birch
23 Jan 2003, 21:34
lol thats good then, i hope it works also :)

alanvo
23 Jan 2003, 21:39
how can i have my bot talk in more forums?

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

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

C.Birch
23 Jan 2003, 21:49
Yeah i know about that but i got no idea how to fix that sorry.

alanvo
23 Jan 2003, 21:51
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
23 Jan 2003, 21:52
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
23 Jan 2003, 21:55
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
23 Jan 2003, 21:55
it seems to me if the bot dont understand something, he/she replies in smilies...

C.Birch
23 Jan 2003, 21:56
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
23 Jan 2003, 21:57
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
23 Jan 2003, 21:58
Does its post count towards your forums post count?

C.Birch
23 Jan 2003, 21:59
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
23 Jan 2003, 22:03
i want the bot to talk through out the forum, not just just one...please figure this out...thank you..

alanvo
23 Jan 2003, 22:03
thank you,,,

C.Birch
23 Jan 2003, 22:04
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

http://www.vbulletin.org/forum/showthread.php?postid=345353#post345353

C.Birch
23 Jan 2003, 22:17
alanvo do you have it working?

NuclioN
23 Jan 2003, 22:25
Amazing! Installing right away. :)

Ember
23 Jan 2003, 22:26
He's only posting smilies so far!

C.Birch
23 Jan 2003, 22:28
ok i know the prob i missed a few things in the install file

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

C.Birch
23 Jan 2003, 22:36
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
23 Jan 2003, 22:38
ps sorry for the mistake said im new to this :)

Ember
23 Jan 2003, 22:45
botloader.php wont run man =\

C.Birch
23 Jan 2003, 22:53
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
23 Jan 2003, 23:06
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
23 Jan 2003, 23:20
does the bot only speek english ?

I need german...

a43079
23 Jan 2003, 23:26
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
23 Jan 2003, 23:46
how exactly does it work ? does the bot generate his answers from the database ?

alanvo
24 Jan 2003, 00:00
im going to shoot this robot if he reply one more smilie...!!!!!!!!!!!!!!!!!

C.Birch
24 Jan 2003, 00:05
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
24 Jan 2003, 00:07
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
24 Jan 2003, 00:09
yes i did and he still reply smilies

a43079
24 Jan 2003, 00:09
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
24 Jan 2003, 00:12
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
24 Jan 2003, 00:13
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
24 Jan 2003, 00:14
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
24 Jan 2003, 00:16
Originally posted by a43079

pm sent

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

NTLDR
24 Jan 2003, 00:17
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
24 Jan 2003, 00:20
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
24 Jan 2003, 00:24
erm i think one of the good hackers are going have to help out im looking abit lost.

a43079
24 Jan 2003, 00:27
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
24 Jan 2003, 00:36
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
24 Jan 2003, 00:46
Very interesting, I'll install this locally and see how it turns out. :D

C.Birch
24 Jan 2003, 00:51
i give up i just killed my bot now i was in phpmyadmin and i pressed the drop database button by mistake :(

a43079
24 Jan 2003, 00:52
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
24 Jan 2003, 00:54
I don't think it dump into the mysql db...

a43079
24 Jan 2003, 00:54
should there be any templates with this hack

C.Birch
24 Jan 2003, 00:59
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
24 Jan 2003, 01:02
aaawww ok so is there a way i can put them in the database

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

C.Birch
24 Jan 2003, 01:03
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
24 Jan 2003, 01:05
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
24 Jan 2003, 01:11
useing botloader.php i dont know why it no work now :(

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

*pulls gun out and shots self*

C.Birch
24 Jan 2003, 01:16
oh yeah the servers back.

a43079
24 Jan 2003, 01:18
hahahhah welcome back

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

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

C.Birch
24 Jan 2003, 01:37
YES YES

C.Birch
24 Jan 2003, 01:39
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
24 Jan 2003, 01:49
ok thanks

Schorsch
24 Jan 2003, 01:52
I need this bot :eek:

Martin64
24 Jan 2003, 03:01
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
24 Jan 2003, 03:15
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
24 Jan 2003, 03:59
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
24 Jan 2003, 04:11
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
24 Jan 2003, 04:28
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
24 Jan 2003, 05:38
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
24 Jan 2003, 06:59
I'm moving the botloader.php to the other directory - I will try it from there.

Ember
24 Jan 2003, 07:00
But I still get "this page cannot be displayed"

Tim Wheatley
24 Jan 2003, 07:26
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
24 Jan 2003, 08:54
Tim: im installing now, ill report if the method works on my server aswell. brb. :)

C.Birch
24 Jan 2003, 09:02
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
24 Jan 2003, 09:07
This hack rocks!!
@ C. Birch, when can we download it ? :confused: ;)
Thanks

C.Birch
24 Jan 2003, 09:09
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
24 Jan 2003, 09:13
it defo looks like i have it working again now :) has its adding things to my database :)

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

C.Birch
24 Jan 2003, 09:16
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
24 Jan 2003, 09:17
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
24 Jan 2003, 09:18
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
24 Jan 2003, 09:23
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
24 Jan 2003, 09:24
Yep, a huge botloader alright. Can you please add the right file in post 1? Tnx. :D

C.Birch
24 Jan 2003, 09:44
:( its added everything it needs to the database but its still taking crap.

C.Birch
24 Jan 2003, 09:44
just smilies

NuclioN
24 Jan 2003, 09:53
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
24 Jan 2003, 09:54
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
24 Jan 2003, 09:58
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
24 Jan 2003, 10:08
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
24 Jan 2003, 10:14
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,attachmentid,pagetext,allowsmili e,showsignature,ipaddress,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
24 Jan 2003, 10:15
im guessing its indexpost($postid,1);

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

C.Birch
24 Jan 2003, 10:49
YAY

got him working again on my forum :>

C.Birch
24 Jan 2003, 10:55
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
24 Jan 2003, 10:57
Nice job C.Birch,

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

x8oz
24 Jan 2003, 10:59
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
24 Jan 2003, 11:00
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
24 Jan 2003, 11:02
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
24 Jan 2003, 11:12
Thanks C.Birch!
Will test it right now!! :D

Tim Wheatley
24 Jan 2003, 11:17
Me too, will report back ASAP (56k!)

C.Birch
24 Jan 2003, 11:17
see ya in 30 min then lol

C.Birch
24 Jan 2003, 11:25
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
24 Jan 2003, 11:25
argh!, LOL. ill report back to *runs botloader for the 5th time this morning*

C.Birch
24 Jan 2003, 11:29
you should get adsl only takes a few min ;)

Kars10
24 Jan 2003, 11:35
bTW. @ C.Birch, can TomBot reply in German by Default? :confused:

C.Birch
24 Jan 2003, 11:38
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
24 Jan 2003, 11:41
this is an awesome hack.. I might install it :)

C.Birch
24 Jan 2003, 11:58
does the new zip work anyone?

Kars10
24 Jan 2003, 12:11
@ 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
24 Jan 2003, 12:16
im not to sure has the alice codeing is not mine but you can give it a try :)

C.Birch
24 Jan 2003, 12:17
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
24 Jan 2003, 12:19
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
24 Jan 2003, 12:20
hehe ok how is it going?

Kars10
24 Jan 2003, 12:22
Oki Doki!
Thanks... :)

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

C.Birch
24 Jan 2003, 12:29
someone going report how the install went please?

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

She works! :)

Brad
24 Jan 2003, 12:36
/me licks install

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

Tony G
24 Jan 2003, 12:39
I love it. Will be very useful. :D

C.Birch
24 Jan 2003, 12:41
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
24 Jan 2003, 13:16
..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
24 Jan 2003, 13:20
have you chmod all the folders to 777?

C.Birch
24 Jan 2003, 13:22
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
24 Jan 2003, 13:36
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
24 Jan 2003, 13:37
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
24 Jan 2003, 13:38
what the address to the file?

attic
24 Jan 2003, 13:40
Hi,

its

*

Thanks in advance,

Hp

C.Birch
24 Jan 2003, 13:45
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
24 Jan 2003, 13:47
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
24 Jan 2003, 13:48
Hi,

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

hp

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

Kars10
24 Jan 2003, 13:50
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
24 Jan 2003, 13:51
Hi,

Oh sorry,

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

hp

C.Birch
24 Jan 2003, 13:53
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
24 Jan 2003, 13:54
OK, created a new dbase and executed the sql script..
Can u run the loader for me now?

Thanks in adv,

Hp

C.Birch
24 Jan 2003, 13:55
ok im running it.

Kars10
24 Jan 2003, 13:57
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
24 Jan 2003, 14:06
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
24 Jan 2003, 14:14
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
24 Jan 2003, 14:18
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
24 Jan 2003, 14:22
*deleted thread - uninstalled hack *

attic
24 Jan 2003, 14:25
@XXXSaint:

Think u have wrong permissions on the dirs

hp

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

xxxsaint
24 Jan 2003, 14:27
i chmodded all alice folders to 777

xxxsaint
24 Jan 2003, 14:30
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
24 Jan 2003, 14:30
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
24 Jan 2003, 14:30
no he is on about the paths set up on your board there wrong somewhere

attic
24 Jan 2003, 14:34
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
24 Jan 2003, 14:43
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
24 Jan 2003, 14:44
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
24 Jan 2003, 14:55
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
24 Jan 2003, 14:58
Hey,

Works great over here now!

Thanks C!

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

Cheers,

Hp

corsacrazy
24 Jan 2003, 14:58
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
24 Jan 2003, 15:00
check out customtags.php in side the plugins folder if not check out www.alicebot.org

corsacrazy
24 Jan 2003, 15:20
cheers mate !

NuclioN
24 Jan 2003, 15:23
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
24 Jan 2003, 15:28
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
24 Jan 2003, 15:34
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
24 Jan 2003, 15:44
Not working, i get this:

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

Birch, your solution gives a parse error.

NuclioN
24 Jan 2003, 15:52
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
24 Jan 2003, 16:33
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
24 Jan 2003, 16:45
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
24 Jan 2003, 17:02
Nice hack :)
Has anyone tried this on 2.2.6 since yesterday (early in this thread someone was unsuccessful)?

Thanks,
Jbear6

NTLDR
24 Jan 2003, 17:23
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
24 Jan 2003, 17:25
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
24 Jan 2003, 17:37
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
24 Jan 2003, 17:38
I mean, think about it, if it learns, I can train it to be my moderator...hehhee

Merjawy
24 Jan 2003, 17:46
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
24 Jan 2003, 17:47
Version 1.1 of this hack is working, I have installed it locally and it does what it's supposed to. :)

NTLDR
24 Jan 2003, 17:55
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
24 Jan 2003, 18:09
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
24 Jan 2003, 18:14
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
24 Jan 2003, 18:15
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
24 Jan 2003, 18:22
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
24 Jan 2003, 18:36
Just added a updated zip file in first post that has NTLDR's last poster fix in the install file.

zachb
24 Jan 2003, 19:30
It works on mine perfectly. Any way to get him to only respond to one topic?

zachb
24 Jan 2003, 19:33
here are my forums: http://www.sfpunk.com

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

zajako
24 Jan 2003, 22:33
for some reason it posts as a guest, i check the userid its all correct.

Gryphon
24 Jan 2003, 23:51
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
25 Jan 2003, 00:10
Very nice!!
*Clicks Install*

C.Birch
25 Jan 2003, 01:03
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
25 Jan 2003, 01:34
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
25 Jan 2003, 02:27
yeah i got that too :P

Gryphon
25 Jan 2003, 02:33
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
25 Jan 2003, 03:24
<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
25 Jan 2003, 03:25
that one file it is looking for does not exist...

madhouse
25 Jan 2003, 03:31
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
25 Jan 2003, 03:35
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
25 Jan 2003, 03:41
wait...that file never created for me...

Ember
25 Jan 2003, 08:31
Ok, I will update to this version - hope it works this time :)

C.Birch
25 Jan 2003, 09:11
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
25 Jan 2003, 09:14
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
25 Jan 2003, 09:54
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
25 Jan 2003, 10:29
i dont know has the alice bot is not made by me its made by www.alicebot.org

Ember
25 Jan 2003, 10:40
The loaders running now, taking ages on W though... hmmm.

C.Birch
25 Jan 2003, 10:54
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
25 Jan 2003, 11:08
@ 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
25 Jan 2003, 11:11
It all works fine, check him out:

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

thomas
25 Jan 2003, 11:40
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
25 Jan 2003, 11:42
before I instll this, roughtly how much MySQL space does it take?

NuclioN
25 Jan 2003, 12:29
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
25 Jan 2003, 13:15
How can I make him know his name and not think it is "Program E"?

obiwan8472
25 Jan 2003, 14:06
This looks great. Does it use any extra bandwidth?

Ember
25 Jan 2003, 14:53
Not bandwidth I wouldnt think, but server load.

C.Birch
25 Jan 2003, 15:06
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
25 Jan 2003, 15:09
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
25 Jan 2003, 15:26
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
25 Jan 2003, 16:46
This is a great idea!

The Ghost
25 Jan 2003, 18:12
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
25 Jan 2003, 18:22
THIS IS NICE :D

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

Martin64
25 Jan 2003, 23:02
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
25 Jan 2003, 23:19
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
26 Jan 2003, 01:27
Is it possible to add another BOT?
I want 2 bots. :D

Crinos
26 Jan 2003, 02:40
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
26 Jan 2003, 02:57
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
26 Jan 2003, 03:48
Maybe you can make the 2 bots talk to each other... it will make an infinite loop... ;)

NuclioN
26 Jan 2003, 03:51
LOL Erwin. :)

NuclioN
26 Jan 2003, 05:07
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
26 Jan 2003, 05:27
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
26 Jan 2003, 06:24
My bot keeps on putting <br>'s in his posts and I have html disabled. Is there a way to remove these?

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

C.Birch
26 Jan 2003, 09:43
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,$topicsta r);

# 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,$topicsta r);

# 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
26 Jan 2003, 09:48
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
26 Jan 2003, 09:57
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
26 Jan 2003, 10:19
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
26 Jan 2003, 10:20
ok, but why the bot says "If you want to teach me something say it in one sentence. Then say "Remember that." ??????

C.Birch
26 Jan 2003, 10:28
because i guess its just something that the maker of the alice code made.

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

C.Birch
26 Jan 2003, 10:53
pass hehe i really have no idea how the alice code works.

BaBa2002
26 Jan 2003, 11:42
i get only smilies how can i fix that

btw Great job C.Birch

Ember
26 Jan 2003, 12:00
Run botloader.php

BaBa2002
26 Jan 2003, 13:15
i already run it 6 times and i still get smilies

Ember
26 Jan 2003, 13:30
Have you set up the database info right?

thomas
26 Jan 2003, 13:44
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
26 Jan 2003, 13:54
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
26 Jan 2003, 14:02
what will you said with the database info
and like thomas i get the same errors

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

nuno
26 Jan 2003, 14:57
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
26 Jan 2003, 14:58
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://www.vbulletin.org/forum/external/2011/01/19.gif

nuno
26 Jan 2003, 15:47
My BOT isn't showing up on who's online. :confused:

CeleronXL
26 Jan 2003, 16:16
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" ;)