View Full Version : TomBot v1.1 vB AI User Bot
Dragomancer
01-26-2003, 04:14 PM
This hack really rocks. Well done :)
Ember
01-26-2003, 04:48 PM
Originally posted by nuno
My BOT isn't showing up on who's online. :confused:
He wont ever show up on the whose online, cos he's never online.
Originally posted by Ember
He wont ever show up on the whose online, cos he's never online.
Dang. :(
I want Tom to be always online.
CeleronXL
01-26-2003, 05:04 PM
No one knows why loadbotinc() is an undefined function for me in botloadinc.php? :(
Ember
01-26-2003, 05:05 PM
Here's an idea...
moify the place where it displays the users online, and modify it so its reads
<a href="http://linktotomsprofile">TomBot</a>,
Followed by whatevers there... that should make him appear at the front of the list.
Ember
01-26-2003, 05:08 PM
Originally posted by CeleronXL
No one knows why loadbotinc() is an undefined function for me in botloadinc.php? :(
Its an undefined function, meaning that botfunctions.php (or something along those lines) isnt there or it is incomplete, try reuploading it - and CH modd'ing it correctly.
CeleronXL
01-26-2003, 05:14 PM
Originally posted by Ember
Its an undefined function, meaning that botfunctions.php (or something along those lines) isnt there or it is incomplete, try reuploading it - and CH modd'ing it correctly. I reuploaded everything and got the same error. I'm using botloaderinc.php because I'm running in safe mode. Everything is CHMODed 777 and everything's in there. :-/
Ember
01-26-2003, 05:18 PM
Have you tried posting the contents of botloaderinc.php into the top of botloader.php - this should mean that the functions are all defined in one place.
I dont understand why you are using botloaderinc.php though?
CeleronXL
01-26-2003, 05:19 PM
You are supposed to use botloaderinc.php instead of botloader.php if your server is running in safe mode (which apparently it is).
EDIT: I get this when using just plain botloader.php:
Warning: Cannot set time limit in safe mode in /weeeeeeee/html/fs/alice/src/admin/botloaderfuncs.php on line 563
So I guess one would think that it is safe mode?
Ember
01-26-2003, 05:28 PM
Ok, I see... well unless you wanna delete line 563 and see what happens, I cant help you any further :( sorry!
CeleronXL
01-26-2003, 05:31 PM
Originally posted by Ember
Ok, I see... well unless you wanna delete line 563 and see what happens, I cant help you any further :( sorry! Hmm.. that made no change in the outcome, but on line 60 of botloaderinc.php is
$doneloading=loadstartupinc($fileid);
I've looked through and found $fileid defined many times... :-/
Thanks though. :)
Ember
01-26-2003, 05:34 PM
Good luck, hope you get it sorted, this hack really is damned good :)
CeleronXL
01-26-2003, 05:39 PM
It would've been nice if the author had made a dump of all of those queries so we could just restore it instead of running such an outrageous number of queries.
Steve Machol
01-26-2003, 05:42 PM
Great hack but I have one slight problem. The script always addes an empty image to every reply:
<img src="" alt="" border="0">
Any ideas how I get rid of this?
Ember
01-26-2003, 05:47 PM
Birch is having a hard time, as he isnt the original hacker, he is just releasing it on behalf of his forums, one of the other admins over there made it. And was reluctant to let him release it.
CeleronXL
01-26-2003, 05:54 PM
Originally posted by Ember
Birch is having a hard time, as he isnt the original hacker, he is just releasing it on behalf of his forums, one of the other admins over there made it. And was reluctant to let him release it. Oh.... :-/ Anyone have a dump of everything that these scripts does?
Martin64
01-26-2003, 06:07 PM
Originally posted by nuno
Dang. :(
I want Tom to be always online.
Logican has made some nice instructions for doing this easily, view this thread: https://vborg.vbsupport.ru/showthread.php?s=&threadid=48109&highlight=always+online
If you want to see a demo of what it'll look like, check my boards: www.emutalk.net
:)
This hack is fun, almost 2000 posts in the bot forum in less than 24 hours :D
NTLDR
01-26-2003, 06:15 PM
Originally posted by CeleronXL
Hmm.. that made no change in the outcome, but on line 60 of botloaderinc.php is
$doneloading=loadstartupinc($fileid);
Change that to:
$doneloading=loadstartup($fileid);
And it should work fine, did for me.
CeleronXL
01-26-2003, 06:29 PM
Originally posted by NTLDR
Change that to:
$doneloading=loadstartup($fileid);
And it should work fine, did for me. Thanks! I also had to get rid of the time line.
I still get time outs after 30 seconds. How do you make these files smaller? I can't see a logical area to cut them down....
I need to break down at least D, I, and W.
Can you tell me more about these timeouts? When do you get the timeouts? Where? Why?
okrogius
01-26-2003, 07:39 PM
I installed it all to directions, but it doesn't appear to be any sort of an Artificial [i]Intelligence[i/], more like artificial stupiditiy.
http://www.cgshock.com/ai/src/talk.html
Any ideas what I'm doing wrong?
ManagerJosh
01-26-2003, 07:42 PM
Okay I figured a way around the timeouts. Group your files together, and move all the *.amil files to the alice directory. Move like 5-7 files into the aiml directory and run botloaderinc.php
After you are done loading that, there is a link to continue processing...
From there, you move those 5-7 files back into the alice directory and move the next 5-7 files into the aiml directory. Run continue.
This will pretty much prevent timeouts. Keep repeating until you are done.
Note: KEEP STARTUP.XML in AIML NO MATTER WHAT.
ManagerJosh
01-26-2003, 07:52 PM
Originally posted by NTLDR
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).$
}
}
I did as you advised NTLDR, however my bot isn't showing as the last user posted on my forumhome. However it is showing up as the last poster on my forum itself.
EDIT: Stand corrected...it is only newreply.php that it doesn't show. Newthread.php works.
EDIT 2: Okay figured out how to make it work. Instead of adding
include "tomstalkerbot.php";
after
} else {
$DB_site->query("UPDATE thread SET lastpost='".time()."',replycount=replycount+1,lastposter='".addslashes($postusername).$
}
}
in newreply.php, add
include "tomstalkerbot.php";
after
// update forum stuff
if ($visible==1) {
$DB_site->query("UPDATE forum SET replycount=replycount+1,lastpost='".time()."',lastposter='".addslashes($postusername)."' WHERE forumid IN ($foruminfo[parentlist])");
} in newreply.php
This will make it show up on the forumhome
Radgam
01-26-2003, 08:31 PM
now if someone could just update the install file... :)
This bot is amazing...almost 800 posts in the bot forum I made in about one hour...
CeleronXL
01-26-2003, 08:54 PM
The bot is just smilie spamming everything...
IE: a post will just contain ":baaa:"
okrogius
01-26-2003, 08:58 PM
It will post only smilies if you didn't run the installer file, as directed by the readme file.
Radgam
01-26-2003, 09:02 PM
Worked for me but i have 2 questions
How can i change the smiles is trys to use? I don't have the same ones installed, and what order are they meant to run in in the $emot array?
2) The bot doesn't reply to short sentences, anyway to make it? ;)
Thanks, and this is awesome!
Martin64
01-26-2003, 09:15 PM
Originally posted by Radgam
Worked for me but i have 2 questions
2) The bot doesn't reply to short sentences, anyway to make it? ;)
Thanks, and this is awesome!
Although I haven't tested this, I think you would have to edit this file in tomstalkerbot.php and reduce the 10 to a 5 to make it reply to 5 character sentences:
if (strlen($ttb_message2)>10)
CeleronXL
01-26-2003, 09:24 PM
Agh, that's all it's doing now.. Picking out of those smilies but not saying a single thing.
The most we got out of him was "Interesting :indif:"
EDIT: I did run it..... the botloader file right? Yeah...
You see, I used a method similar to ManagerJosh's.. I think every time you rerun the startup script, it deletes the old inserted data to redo it. Therefore, moving the *.aiml files and rerunning that script shouldn't work... :-/
Also, botloaderinc.php does NOT load the files individually, it loads them all, what's with this? Is there a modification I can make to make it really only load one?
Originally posted by Radgam
Worked for me but i have 2 questions
How can i change the smiles is trys to use? I don't have the same ones installed, and what order are they meant to run in in the $emot array?
2) The bot doesn't reply to short sentences, anyway to make it? ;)
Thanks, and this is awesome! Edit tomstalkerbot.php and right near the top I'm sure you'll notice the smilies... If not, search for :xmas: and you'll see them.
Platinumgamer
01-26-2003, 10:07 PM
**Edit: Never mind this, it works perfectly:)
Hi,
I have installed this hack as was stated in the install file, yet when I try to run botloarder.php all I get is the following:
Loading startup.xml
Warning: fopen("/platinum/public_html/forums/aiml/startup.xml", "r") - No such file or directory in /home/platinum/public_html/forums/alice/src/admin/botloaderfuncs.php on line 508
could not open XML input
Can someone please tell me what I'm doing wrong? Everything is CHMODDed to '777' and all files are uploaded properly, but all I get is the aforementioned error. Sorry to be a bother.
Thanks!
Steve Machol
01-26-2003, 10:15 PM
Originally posted by Steve Machol
Great hack but I have one slight problem. The script always addes an empty image to every reply:
<img src="" alt="" border="0">
Any ideas how I get rid of this? Here's a pic of the problem I'm having. Everyone of the bot's posts has this. Any ideas?
snakes1100
01-26-2003, 10:32 PM
Steve
Well that's suppose to be calling a smile, at least the works for most of us lol.
To address the problem that some get for fopen, this is most likely do to one of two things:
Either your host don't have the fopen option enabled in php.ini
or
Like me, im running htaccess and its blocking access to open the talk.php file.
Im still trying to get a work around im happy with, but its begining to irk me. I like this hack alot and would appreciate any help from a htaccess guru?
thanx
Steve Machol
01-26-2003, 10:40 PM
Originally posted by snakes1100
Steve
Well that's suppose to be calling a smile, at least the works for most of us lol. Thanks but actually I am getting the smilies just fine. This one is always an extra:
<img src="" alt="" border="0">
...at the beginning of the post.
See the new pic.
Martin64
01-26-2003, 10:46 PM
No, that's not it. That's the post icon. :)
Steve: open tomstalkerbot.php.
FIND AND DELETE:
,iconid
FIND AND DELETE:
,'10'
Or you could just change the iconid to an existing id, but I recommend deleting it or all your bot's posts will have the same icon.
Steve Machol
01-26-2003, 10:46 PM
Here's something weird. If I edit the post there is no img code in it. If I twen save it without making any changes the <img src="" alt="" border="0"> disappears. :confused:
snakes1100
01-26-2003, 10:47 PM
Yeah heres a pic from mine
Steve Machol
01-26-2003, 10:50 PM
Originally posted by Martin64
No, that's not it. That's the post icon. :)
Steve: open tomstalkerbot.php.
FIND AND DELETE:
,iconid
FIND AND DELETE:
,'10'
Or you could just change the iconid to an existing id, but I recommend deleting it or all your bot's posts will have the same icon. Hmmm....I did this and now the bot isn't responding at all. Let me try this again.
Martin64
01-26-2003, 10:53 PM
Well, it won't respond if your message has less than 10 characters so that might be it. :)
Steve Machol
01-26-2003, 10:54 PM
Nope, that's not it. It was well over 10 characters.
Martin64
01-26-2003, 10:54 PM
That's very odd. I tested it right now to be sure, and it's working for me...
snakes1100
01-26-2003, 10:55 PM
either of you any good with htaccess?
Steve Machol
01-26-2003, 10:55 PM
Originally posted by Steve Machol
Hmmm....I did this and now the bot isn't responding at all. Let me try this again. I worked the second time. I must have made a mistake in the editing. Thanks!
Martin64
01-26-2003, 10:57 PM
No problem Steve, glad I could help :)
snakes1100: what's the problem?
snakes1100
01-26-2003, 10:59 PM
thanx martin
well basically, i have my forums folder htaccess protected, when i do this i get the fopen error when i try to post, the bot dont respond.
if i removethe htaccess the bot is fine because the htaccess isnt blocking the talk.php file.
anything i can do to exclude the files its calling for from the htaccess file?
bromyaur
01-26-2003, 11:02 PM
finally got it working for a second lol
I made a post and he replied with this, I saw a post in this thread way back about changing a setting in the phpini file. Where exactly do I find the phpini file. I dont have root access so am I able to even edit this file?
<br />
<b>Warning</b>: 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 <b>/home/bromyaur/public_html/brutal/alice/src/graphnew.php</b> on line <b>125</b><br />
<br />
<b>Warning</b>: 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 <b>/home/bromyaur/public_html/brutal/alice/src/graphnew.php</b> on line <b>231</b><br />
Martin64
01-26-2003, 11:08 PM
snakes1100: If you haven't done it already, CHMOD the .htaccess file to 644.
snakes1100
01-26-2003, 11:11 PM
yeah thats fine? anything else you could think of?
Martin64
01-26-2003, 11:16 PM
Hmm...what's in your htaccess file?
snakes1100
01-26-2003, 11:17 PM
right now i have this:
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* */alice* */*.php*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.mysite.org
AuthUserFile /home/deuteron/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/deuteron/public_html/_vti_pvt/service.grp
Hey Steve, what's wrong with my account at OB?
NTLDR
01-26-2003, 11:31 PM
Originally posted by bromyaur
finally got it working for a second lol
I made a post and he replied with this, I saw a post in this thread way back about changing a setting in the phpini file. Where exactly do I find the phpini file. I dont have root access so am I able to even edit this file?
Originally posted by NTLDR
The following in a .htaccess file should work too
php_flag allow_call_time_pass_reference on
Martin64
01-26-2003, 11:32 PM
Originally posted by snakes1100
right now i have this:
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* */alice* */*.php*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.mysite.org
AuthUserFile /home/deuteron/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/deuteron/public_html/_vti_pvt/service.grp
Hmm...using both deny from all and allow from all? :)
That "deny from all" you're using denies everyone. I'm not sure what you're protecting, but I wouldn't recommend using it. Use this instead:
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* */alice* */*.php*
<Limit GET POST>
order deny,allow
deny from all
allow from localhost
</Limit>
<Limit PUT DELETE>
order deny,allow
allow from localhost
</Limit>
AuthName www.mysite.org
AuthUserFile /home/deuteron/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/deuteron/public_html/_vti_pvt/service.grp
If that doesn't work, replace localhost with your server ip.
snakes1100
01-27-2003, 12:11 AM
Originally posted by Martin64
Hmm...using both deny from all and allow from all? :)
That "deny from all" you're using denies everyone. I'm not sure what you're protecting, but I wouldn't recommend using it. Use this instead:
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* */alice* */*.php*
<Limit GET POST>
order deny,allow
deny from all
allow from localhost
</Limit>
<Limit PUT DELETE>
order deny,allow
allow from localhost
</Limit>
AuthName www.mysite.org
AuthUserFile /home/deuteron/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/deuteron/public_html/_vti_pvt/service.grp
If that doesn't work, replace localhost with your server ip.
this gives me a total forbidden error page.
<Limit GET POST>
order deny,allow
deny from all
allow from localhost <----- had to change back to all
snakes1100
01-27-2003, 12:13 AM
where would i insert this exactly, treid it in a few spots so far?
php_flag allow_call_time_pass_reference on
Martin64
01-27-2003, 12:25 AM
Well, using both deny from all and allow from all doesn't make sense. If you remove deny from all it should work.
snakes1100
01-27-2003, 12:45 AM
nope sure doesn't martin, still getting the fopen crap, think its time to recycle the bot.... :=(
NuclioN
01-27-2003, 12:59 AM
Is anyone trying to let this bot work in VBchat-shoutbox as well?
Steve Machol
01-27-2003, 02:16 AM
Originally posted by nuno
Hey Steve, what's wrong with my account at OB? You had a bad email address that was causing bounced emails.
Erwin
01-27-2003, 02:47 AM
Installed. Works 100% the first time around, with no problems. :)
Tell your friend he's done a great job! :)
Erwin
01-27-2003, 03:09 AM
Also, I'm moving this to "Full Releases" since it works, at least flawlessly, on my site. My users love him. :)
ManagerJosh
01-27-2003, 04:33 AM
Could someone update the setup package? See:
https://vborg.vbsupport.ru/showthread.php?postid=346695#post346695
A little bug NTLDR created :D
Well, it got 1900 posts, the bot forum did, in what, a few hours...simple amazing...
Radgam
01-27-2003, 08:40 AM
okay, never mind ;) I found the random command for smilies slightly further down in the coding...
But i have a different problem, the bot keeps using the same post icon :angry: ! Not related to the similies, the actual post icon, is always the same. Any ideas?
Erwin
01-27-2003, 08:43 AM
It's random, but I think the bot has some way of choosing the right emoticons for certain posts because the happy and sad smilies seem to be standard in most forums.
Davey
01-27-2003, 08:50 AM
This looks good dude, I tried it on your board; -- wonderful job!
This should be interesting, but I can't install it until Friday (which is when I get broadband :)).
I downloaded it at work but it looks complicated.
I'll take another look sometime.
Thanks for releasing, and I will vote this hack of the month when it next comes round.
Dave.
Radgam
01-27-2003, 09:01 AM
Just wondered, sometimes the bot posts a
: - ) smile. Is that it's actual emotions and the rest of the time it's just a random pick of the list you give it? That smile code isn't in the $ emot list
Might need to change it so it refers to a smilies code actually install in my board ...
Ooh, and lastly,
1) sometimes the bot things a smile is part of my post... anyway to stop that?
2) Sometimes the bot forgets to put a space in between words, mainly when you get it to do maths, how do i sort that
3) Once the bot posted <br><br> is his sentence and sometimes it does returns in weird places.. any ideas?
chr@nox
01-27-2003, 09:17 AM
installed it and sofar works okay..
but..when i run botloader.php it shows this results :
Notice: Undefined offset: 8 in C:\Program Files\Apache Group\Apache2\htdocs\alice\src\admin\botloaderfunc s.php on line 187
Notice: Undefined offset: 8 in C:\Program Files\Apache Group\Apache2\htdocs\alice\src\admin\botloaderfunc s.php on line 187
and that keeps going like 20.000 times..
then..at the last line it shows me
Notice: Undefined offset: 12 in C:\Program Files\Apache Group\Apache2\htdocs\alice\src\admin\botloaderfunc s.php on line 187
XML error: not well-formed (invalid token) at line 19771
anybody who can help me with this?
chr@nox
01-27-2003, 10:12 AM
Originally posted by chr@nox
installed it and sofar works okay..
but..when i run botloader.php it shows this results :
Notice: Undefined offset: 8 in C:\Program Files\Apache Group\Apache2\htdocs\alice\src\admin\botloaderfunc s.php on line 187
Notice: Undefined offset: 8 in C:\Program Files\Apache Group\Apache2\htdocs\alice\src\admin\botloaderfunc s.php on line 187
and that keeps going like 20.000 times..
then..at the last line it shows me
Notice: Undefined offset: 12 in C:\Program Files\Apache Group\Apache2\htdocs\alice\src\admin\botloaderfunc s.php on line 187
XML error: not well-formed (invalid token) at line 19771
anybody who can help me with this?
got it fixed :P
working on localhost :)
great work man! i love this hack!
Radgam
01-27-2003, 12:38 PM
is there a way to stop the bot adding <br> s to posts?
NuclioN
01-27-2003, 01:00 PM
enable html would solve this quick but that's not an option i guess. ;)
NuclioN
01-27-2003, 01:10 PM
I've tried to figure out how to let the tombot act in the VBchat/shoutbox but that's to complicated for me. It is possible, i'm sure but the INSERT into shoutbox must have it's own code and obviously some new tables in the shoutbox on mysql. It would be awesome though if someone could do this. :)
The Aiml is relative easy to learn and it would be great if someone or a group would make a FAQ bot. It's timeconsuming but once set your forum would gain in interactivity and fun.
If an English aiml is ready to perform tasks for Vbulletin then i will translate it into Dutch and release it.
The bot used to answer most of my questions but now unless it's something like "Hello, Tux." (Tux is the name of my bot), all it replies with is a smilie.
http://www.otcentral.com/forum/showthread.php?s=&threadid=2597&perpage=40&pagenumber=46
http://www.otcentral.com/forum/showthread.php?s=&threadid=1351&perpage=40&pagenumber=159
(scroll down to about the middle of the page on both links, I only just installed him at about 10:00)
Read the first link, and then the second link (both that page and the next one), see how his answers degraded from almost-complex retaliatory questions to nothing but smilies?
Radgam
01-27-2003, 02:25 PM
Originally posted by NuclioN
enable html would solve this quick but that's not an option i guess. ;)
do you think i want my forum hacked? :D I quess it would be possible to find some sort of find/replace so <br> s = /n s?
Originally posted by fury
The bot used to answer most of my questions but now unless it's something like "Hello, Tux." (Tux is the name of my bot), all it replies with is a smilie.
http://www.otcentral.com/forum/showthread.php?s=&threadid=2597&perpage=40&pagenumber=46
http://www.otcentral.com/forum/showthread.php?s=&threadid=1351&perpage=40&pagenumber=159
(scroll down to about the middle of the page on both links, I only just installed him at about 10:00)
Read the first link, and then the second link (both that page and the next one), see how his answers degraded from almost-complex retaliatory questions to nothing but smilies?
@fury
Maybe it's calling the wrong bot id number.
Check your db. ;)
Nope, the bot ID was wrong but I changed that and no effect.
http://www.otcentral.com/forum/alice/src/jsrs/jsrschat.html
hmmmm
I get no answer from your bot
Is he mad? :D
Originally posted by Radgam
is there a way to stop the bot adding <br> s to posts? $string = preg_replace( '~<br />~' , '' , $string );
Radgam
01-27-2003, 03:27 PM
My bot keeps say "What is living in canada like living in
canada?" when i say i live in canada. Notice he says the same things twice? does anyone with ai knowledge how how to sort that? ;) I looked through the AIML files but they seem fine :/
My bot has almost 800 posts now....in about 20 hours this bot forum has added over 2000 posts to my forum, 800 of which are from the bot...
drumsy
01-27-2003, 04:00 PM
How do I undo the SQL commands that I ran from db.sql? I'm encountering problems with safemode and it's becoming to much of a pain to work with.
Originally posted by TECK
$string = preg_replace( '~<br />~' , '' , $string ); There's also the much faster method of str_replace('<br />' , '', $string );
Mijae
01-27-2003, 06:25 PM
He wont answer anything but smilies. I used ManagerJosh's technique to upload the files because I have PHP in safe mode.
Also, all files did upload except the D.aiml and I have 34449 entries, not 41125.
Help me? :P
JBMoney
01-27-2003, 06:31 PM
I get this at the end of running botloader.php. What did I do wrong?
Warning: fopen(subs.inc) [function.fopen]: failed to create stream: Permission denied in /home2/www/bushwhacked/forum/alice/src/admin/botloaderfuncs.php on line 85
Warning: fwrite(): supplied argument is not a valid stream resource in /home2/www/bushwhacked/forum/alice/src/admin/botloaderfuncs.php on line 77
Warning: fwrite(): supplied argument is not a valid stream resource in /home2/www/bushwhacked/forum/alice/src/admin/botloaderfuncs.php on line 77
Warning: fwrite(): supplied argument is not a valid stream resource in /home2/www/bushwhacked/forum/alice/src/admin/botloaderfuncs.php on line 77
Warning: fwrite(): supplied argument is not a valid stream resource in /home2/www/bushwhacked/forum/alice/src/admin/botloaderfuncs.php on line 77
Warning: fwrite(): supplied argument is not a valid stream resource in /home2/www/bushwhacked/forum/alice/src/admin/botloaderfuncs.php on line 77
Warning: fwrite(): supplied argument is not a valid stream resource in /home2/www/bushwhacked/forum/alice/src/admin/botloaderfuncs.php on line 77
Warning: fwrite(): supplied argument is not a valid stream resource in /home2/www/bushwhacked/forum/alice/src/admin/botloaderfuncs.php on line 77
DONE LOADING
Inserted 41126 categories into database
Mijae
01-27-2003, 06:33 PM
Could anyone help me out? PM me please.
CeleronXL
01-27-2003, 06:38 PM
No, don't PM him, answer here... I have the same problem. :( It'll only answer VERY few posts, all others will be smilie spam. I did the same thing as v0id for uploading too. I thought it had worked too... :(
JBMoney
01-27-2003, 06:45 PM
Help? I got this reply from the bot.
Warning: main(admin/subs.inc) [function.main]: failed to create stream: No such file or directory in /home2/www/bushwhacked/forum/alice/src/util.php on line 35
Warning: main() [function.main]: Failed opening 'admin/subs.inc' for inclusion (include_path='') in /home2/www/bushwhacked/forum/alice/src/util.php on line 35
Warning: Empty regular expression in /home2/www/bushwhacked/forum/alice/src/util.php on line 365
Warning: Empty regular expression in /home2/www/bushwhacked/forum/alice/src/util.php on line 415
Warning: Empty regular expression in /home2/www/bushwhacked/forum/alice/src/util.php on line 365
What do you do in your spare time?
:baaa:
JBMoney
01-27-2003, 07:11 PM
Fixed. Appears to be working.
Erwin
01-27-2003, 08:19 PM
The bot is working fine on my site - there are over 3,600 posts in his forum in under 20 hours, and he's made half of them already.
The only problem: server load - I get 200-300 concurrent users online, and this bot is sucking up my server load like crazy... it's at least doubled, and at times quadrupled! Hopefully the novelty will die down soon. :)
Radgam
01-27-2003, 08:30 PM
For anyone who has been having any of these problems with the bots output:
[list=1]
A large amount of tabs in the middle of a sentence
A full stop or question mark being beside more text (although there should be a space)
<br>s in the text
[/list=1]
Do the following:
Find:
$ttb_time = time() + rand(1,5);
After that line add:
// Clean Output
$response = str_replace('<br>' , '', $response );
$response = str_replace('</br>' , '', $response );
$response = str_replace(', .' , '.', $response );
$response = preg_replace("/(\?|\.|!)(\w)/","$1 $2",$response);
$response = preg_replace("/(\w|,)\s+(\w|\?|\.|!)/","$1 $2",$response);
$response = preg_replace("/\n\s+/","\n",$response);
Hope this helps :) Thanks to fury for info on removing the <br>s & just to mention, the search to remove </br> was intentional as i have noticed it in the output from time to time.
Edit
I made a mistake in the original coding so please update to the above ASAP if you have used it :) Thanks to JBMoney for reporting the problem.
bandersen
01-27-2003, 08:43 PM
Originally posted by JBMoney
I get this at the end of running botloader.php. What did I do wrong?
Hi - I have just installed this hack and get the same error as you in your post 334. Did you manage to figure it out? Please share...
(I do get a first reply from the bot, but only the smiley. No second reply.)
JBMoney
01-27-2003, 08:47 PM
In my case, it was a matter of chmod'ing ALL the subdirectories, not just Alice's subdirectories, but also the subdirectories of Alice's subdirectories to 777.
I tend to read directions literally, and not try to read things into them. In this case, you need to.
JBMoney
01-27-2003, 09:04 PM
Every once in a while, it refers to itself as Alice. Is there a quick fix to change that to its username?
jbear6
01-27-2003, 09:23 PM
You can change it's name in the "bot" table.
JBMoney
01-27-2003, 09:41 PM
I think this is something different. The name is set appropriately in the Bot table.
Example of a partial reply:
"The ALICE chat robot can follow many things"
Also, it likes to cut off the first letter from words a lot, especilly after a punctuation mark of some sort ("?", ".", "!").
Mijae
01-27-2003, 09:42 PM
Could anyone send me their file to admin@invoid.net?
D.aiml seems corrupt in the downloads I get. Its the only file that returns 0 categories inserted.
bandersen
01-27-2003, 10:44 PM
Originally posted by JBMoney
In my case, it was a matter of chmod'ing ALL the subdirectories, not just Alice's subdirectories, but also the subdirectories of Alice's subdirectories to 777.
I tend to read directions literally, and not try to read things into them. In this case, you need to.
Sweet!
Thank you - I managed to run botloader with no errors after chmoding EVERY directory to 777.
I am still geting the following error when posting a new thread:
Warning: fopen("http://www.athlonarena.com/forums/upload/alice/src/talk.php?input=will+you+ever+work%3F", "r") - No such file or directory in /usr251/home/banderse/public_html/forums/upload/tomstalkerbot.php on line 46
Warning: fread(): supplied argument is not a valid File-Handle resource in /usr251/home/banderse/public_html/forums/upload/tomstalkerbot.php on line 47
Warning: fclose(): supplied argument is not a valid File-Handle resource in /usr251/home/banderse/public_html/forums/upload/tomstalkerbot.php on line 48
Here is line 46-48 in tomstalkerbot.php:
$ff = fopen($ttb_alicelocation . "?input=" . urlencode($rss),"r");
$response = fread($ff,10000);
fclose($ff);
I have checked that the alicelocation is correct and tomstalkerbot.php is uploaded to my root (forums/upload). I am only able to get smiley reply's and only the first time (no second reply of any kind in the same thread).
Any hints?
OK, WTF, now my templates table has 0 records in it (used to have 31000)
Which would probably explain why it doesn't answer... :confused:
Mijae
01-28-2003, 12:51 AM
In what table are the entries stored from the .aiml files?
JBMoney
01-28-2003, 03:22 AM
Radgam - It's working a lot better for me without these last two lines:
$response = preg_replace("/(\?|\.|!)(\w)/" , " $1", $response );
$response = preg_replace("/(\w)\s+(\w|\?|\.|!)/","$1 $2",$response);
They seem to be causing all the punctuation related problems I mentioned.
scsa20
01-28-2003, 05:25 AM
I keep getting the following error when I post a reply or a new thread:
Warning: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/scsa20/public_html/forums/tomstalkerbot.php on line 46
Warning: fopen("http://www.simon-soft/forums/alice/src/talk.php?input=tombot+is+kwel", "r") - Bad file descriptor in /home/scsa20/public_html/forums/tomstalkerbot.php on line 46
Warning: fread(): supplied argument is not a valid File-Handle resource in /home/scsa20/public_html/forums/tomstalkerbot.php on line 47
Warning: fclose(): supplied argument is not a valid File-Handle resource in /home/scsa20/public_html/forums/tomstalkerbot.php on line 48
how do I fix this??
http://www.kousetsu.net/forums/showthread.php?s=&postid=30856#post30856
LOL!! ;)
bandersen
01-28-2003, 07:54 AM
:p
So cool Anime-loo! I must get "mine" to work asap!
Radgam
01-28-2003, 08:34 AM
Originally posted by JBMoney
Radgam - It's working a lot better for me without these last two lines:
$response = preg_replace("/(\?|\.|!)(\w)/" , " $1", $response );
$response = preg_replace("/(\w)\s+(\w|\?|\.|!)/","$1 $2",$response);
They seem to be causing all the punctuation related problems I mentioned.
that's weird :( It's just a basic find/replace, it shouldn't be cutting off any characters... I tested it throughly on my localhost before posting as well :dead:
Could be the different OS i guess. The problem i found (just for example) is when you say "my favourite movie is lord of the rings" and you get a ton of white space.
I'll test the code a bit more and let you know what i find.
edit: oooo, i very much appologise for my mistake in the original post. I forgot to include the $2 variable which contains the word in the find/replace :eek:
Here is the updated version, please let me know if it works :nervous: (and yes, i know it's quite a few searches, but they need to be seperate to function properly :/ - but it has cleaned the output very well on my board (and is based on heavy testing!!)
Find:
$ttb_time = time() + rand(1,5);
After that line add:
// Clean Output
$response = str_replace('<br>' , '', $response );
$response = str_replace('</br>' , '', $response );
$response = str_replace(', .' , '.', $response );
$response = preg_replace("/(\?|\.|!)(\w)/","$1 $2",$response);
$response = preg_replace("/(\w|,)\s+(\w|\?|\.|!)/","$1 $2",$response);
$response = preg_replace("/\n\s+/","\n",$response);
Mickie D
01-28-2003, 01:33 PM
yeah this hack looks very good :)
just wondering if i can only have a forum where he can answer in ???
like a forum called "ask the bot"
Radgam
01-28-2003, 01:34 PM
that's how the hack currently works :) You can have the bot enabled in one selected forum.
Banana
01-28-2003, 02:48 PM
OK, just did the install - all appeared OK. Read 24 pages of this thread (phew!). Everything appears fine BUT I have no entries in the "bots" table. The install says "Login to phpmyadmin and check in the 'bots' table that the bot id is 0 you find that the table 'bot's the id number in there needs editing to 0 from 1 in some cases" - so what is the row that's missing? thanks!
Hmm, it deletes all current rows resulting from the aiml imports? That would probably explain why it only has 3000 some categories.
Radgam
01-28-2003, 03:37 PM
could someone who seems to be understanding all this AIML stuff better than i am explain what i should do with this? :D
<category>
<pattern>I LIVE IN *</pattern>
<template>What is <set name="it"><set name="topic">living in <person/></set></set> like living in
<set name="location"><person/></set>?
<think><set name="it"><set name="topic"><person/></set></set></think>
</template></category>
Now, that's the cause of the AI problem on my forum where i say "I live in placename" it responds "what is living in placename like living in placename?"
Martin64
01-28-2003, 03:41 PM
Originally posted by fury
Hmm, it deletes all current rows resulting from the aiml imports? That would probably explain why it only has 3000 some categories.
Indeed it does, but if you remove the line in botloader.php I posted about above it will not delete old rows, it will only import new aiml if there is.
bandersen
01-28-2003, 03:49 PM
Did anyone get this working on 2.2.6??
This hack got me back hacking again.. forgot to check how far I got with the versions last time :-)
Automated
01-28-2003, 04:55 PM
When i run the botloader script it allways stops about half way thround saying DONE in the status bar ! What can i do
Thanks
Matthew
Martin64
01-28-2003, 05:05 PM
[I forgot some important stuff earlier, so I deleted my post and am posting it here instead]
Here's a little guide I wrote that comes handy if you want to add extra AIML files without having to flush the old bot tables and without having to run the whole botloader process everytime you want to "teach" your bot something.
Do this.
Open alice/src/admin/botloader.php.
FIND AND DELETE:
deletebot();
Save and upload the file.
Open alice/aiml/startup.xml
FIND:
<learn>*</learn>
Replace with:
<learn>custom.aiml</learn>
Save and upload the file.
Now open notepad and paste this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<aiml>
<category>
<pattern>WHO IS MARTIN64</pattern>
<template>He is a vbulletin.org hacker.
</template>
</category>
</aiml>
Save the file as custom.aiml and upload it to your aiml directory. This is just an example of what you can have in your custom.aiml file. If you want to learn more about writing your own AIML files, visit this site: http://www.lfay.net/anna/aiml.html
Now, whenever you have added more information to your custom.aiml file and want to teach your bot more stuff, just upload custom.aiml and run botloader.php. This will add the extra AIML file to your database without flushing your old tables.
This means your bot will have 0 downtime when adding new AIML, as you don't have to redo the whole botloading process.
:cool:
C.Birch
01-28-2003, 05:14 PM
My oh my this topic has got bigger hehe thanx to who every moved it to the full hacks forum.
Sorry i have not been here but i have been far to busy the last week doing web design work.
Mickie D
01-28-2003, 05:30 PM
when i try to run the botloader it does nothing for about 10 mins then it gives me a page cannot be displayed error :(
can anyone tell me where i am going wrong ???
i have chmodded all the sub dirs etc 777 :) all help would be gr8
Mickie D
01-28-2003, 06:19 PM
is this bot german ????
i viewed the text files that come with the bot zip and there is alot of german or some foriegn language ??
any one know ??
ULTIMATESSJ
01-28-2003, 08:50 PM
This hack looks pretty impressive, but how many queries will this add to my forums
Erwin
01-28-2003, 09:18 PM
Originally posted by ULTIMATESSJ
This hack looks pretty impressive, but how many queries will this add to my forums
It adds a couple of queries each time the bot is answering a post - this will greatly increase your server load - I'm on a dedicated server, and it's slowed down my site by quite a bit - we have almost 10,000 posts in my bot's forum alone now... :)
Erwin
01-28-2003, 09:20 PM
Originally posted by Martin64
Here's a little guide I wrote that comes handy if you want to add extra AIML files without having to flush the old bot tables and without having to run the whole botloader process everytime you want to "teach" your bot something.
:cool:
Very good advice, Martin. Thanks!
Automated
01-28-2003, 09:24 PM
Originally posted by Automated
When i run the botloader script it allways stops about half way thround saying DONE in the status bar ! What can i do
Thanks
Matthew
Any help would be great Thanks :p
Matthew
Banana
01-28-2003, 10:03 PM
someone tell me the contents of their bots table PLEASE!
Sanni
01-28-2003, 11:08 PM
Originally posted by bandersen
Did anyone get this working on 2.2.6??
This hack got me back hacking again.. forgot to check how far I got with the versions last time :-)
I am also interested to know if it works for 2.2.6. I admin a large, busy set of forums and do not have a development server environment that i can use. As such any hacks i install are done on the live system so I am hesitant to install it unless i know it works with my VB version.
BTW this sounds like a great hack....just the thing I need to play a practicle job on my users :D
mdx381
01-28-2003, 11:14 PM
I am installing this now, hilarious.
Martin64
01-29-2003, 12:57 AM
I made a hack that allows you and your mods to create AIML directly from the Mod CP into your database. Once a few mods have added some nice questions and answers, you can just open phpmyadmin and grab the AIML from the table teachbot.
The screenshot will be self-explanitory. :)
If there's interest, I'll zip up the files and write some instructions.
Crinos
01-29-2003, 01:20 AM
There is interest :D
jbear6
01-29-2003, 01:23 AM
Originally posted by Martin64
I made a hack that allows you and your mods to create AIML directly from the Mod CP into your database. Once a few mods have added some nice questions and answers, you can just open phpmyadmin and grab the AIML from the table teachbot.
The screenshot will be self-explanitory. :)
If there's interest, I'll zip up the files and write some instructions.
I would be very interested, that looks sweet :)
Thanks
Jbear6
dynamite
01-29-2003, 01:25 AM
Originally posted by Mickie D
is this bot german ????
i viewed the text files that come with the bot zip and there is alot of german or some foriegn language ??
any one know ?? It speaks German, French, even some Japanese!!! My nephew got on mine and was having a blast!!!
I fixed him by running the botloader.php on my localhost and then dumping the patterns and templates tables, then importing those.
But he was causing so much server load that I had to turn him off :(
NuclioN
01-29-2003, 04:23 AM
Martin64 you're da man. :) xmlspy is a cool program and it detects errors in the code but it's very expensiv. A simple editor that alows moderators to help the bot talk more forum related things is just what is needed. Good job.
Automated
01-29-2003, 07:25 AM
EDIT : I have solved the problem now :p
Automated
01-29-2003, 07:31 AM
EDIT : I have solved the problem now :p
Banana
01-29-2003, 01:23 PM
Originally posted by Banana
someone tell me the contents of their bots table PLEASE!
pretty please!
output from "select * from bots" please - mine is empty, not sure that's right
Automated
01-29-2003, 01:29 PM
Your bots table is supped to be empty, Mine is and it works.
My Question. How do teach the bot to remember things?
Thanks
Matthew
NuclioN
01-29-2003, 01:42 PM
If the bot remembers, it's trough aiml or with a very short term memory, member and conversation related i guess. Dr Wallace is not clear about this, a bit mysterious.
Automated
01-29-2003, 01:47 PM
EDIT : Problem solved :p
NuclioN
01-29-2003, 01:52 PM
That would be nice "remember this" but it's obvious a hoax "forget this" :)
Automated
01-29-2003, 02:06 PM
How do i make him learn stuff?
Beorn
01-29-2003, 05:56 PM
At least everyone got descriptions for their fopen problems!
Warning: fopen("http://www.mysite.com/non-pro/testvb2/alice/src/talk.php?input=Hey%21++Tom%21++Is+your+jacket+blue +and+your+boots+yellow%3F", "r") - Undefined error: 0 in /www/data.default/non-pro/testvb2/tomstalkerbot.php on line 46
Warning: fread(): supplied argument is not a valid File-Handle resource in /www/data.default/non-pro/testvb2/tomstalkerbot.php on line 47
Warning: fclose(): supplied argument is not a valid File-Handle resource in /www/data.default/non-pro/testvb2/tomstalkerbot.php on line 48
:(
Martin64
01-29-2003, 06:07 PM
I have released my hack (vBTeachbot 1.0) here:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=48291
It allows you to teach your bot new things, and it's pretty easy. :)
bandersen
01-29-2003, 06:22 PM
Thank you!!!!!
I'll install when I am done ugrading to 2.2.9...
Beorn
01-29-2003, 06:52 PM
OK...here's a way that may fix your fopen errors. It fixed mine. May not work on Windblows:
OPEN: tomstalkerbot.php
FIND:
$rss = preg_replace("#^(.*)\[/quote\]#ies","",$message);
$ff = fopen($ttb_alicelocation . "?input=" . urlencode($rss),"r");
$response = fread($ff,10000);
fclose($ff);
REPLACE IT WITH:
$rss = preg_replace("#^(.*)\[/quote\]#ies","",$message);
shell_exec("fetch -o /tmp/alice \"$ttb_alicelocation input=".urlencode($rss)."\"");
$ff = fopen("/tmp/alice","r");
$response = fread($ff,10000);
fclose($ff);
You can replace /tmp/alice with whatever you like...
Originally posted by fury
But he was causing so much server load that I had to turn him off :(
Damn right, i'll miss him. :dead:
bandersen
01-29-2003, 08:34 PM
[QUOTE]Originally posted by Beorn
[B]OK...here's a way that may fix your fopen errors. It fixed mine. May not work on Windblows:
Hey - thanks, I am getting closer... first time I get more than smileys... see attachment :-)
(I have now also upgraded from 226 to 229)
I am on a shared server and not sure the path is right or what.... I entered the following path in both places:
$ff = fopen("/usr251/home/fiddler/public_html/forums/upload/alice","r");
same as www.domainname.com/forums/upload/alice in the browser.
Does it look correct?
(ps. the error message showing in the redirect page is gone tho...)
Automated
01-29-2003, 08:59 PM
Does this thing actually improve or does it stay as it is? I mean you said that it would learn but it doesnt remember anything you tell it and it doesnt seem to be improving its grasp of things :(
How do i get it to improve?
Thanks
Matthew
Simms
01-29-2003, 09:03 PM
Originally posted by Automated
Your bots table is supped to be empty, Mine is and it works.
My Question. How do teach the bot to remember things?
Thanks
Matthew
If the bots table is supposed to be empty, how then do we check to make sure the botid=0? :) I spent 15 minutes looking around the bot and bots table wondering why the hell the "Browse" link in phpMyAdmin was greyed out. Also, aren't we supposed to edit the bot's name, favourite food, etc. in the bot table (according to the install file, anyway)? I'm fairly certain I'm missing something here, but I'm confused nonetheless. Any help would be hugely appreciated. :)
Everything else seems to be fine....got rid of the errors after running botloader.php, but I haven't turned the bot "on" yet. Just want to make sure everything is in order before I do.
jbear6
01-29-2003, 09:55 PM
Originally posted by Simms
If the bots table is supposed to be empty, how then do we check to make sure the botid=0? :) I spent 15 minutes looking around the bot and bots table wondering why the hell the "Browse" link in phpMyAdmin was greyed out. Also, aren't we supposed to edit the bot's name, favourite food, etc. in the bot table (according to the install file, anyway)? I'm fairly certain I'm missing something here, but I'm confused nonetheless. Any help would be hugely appreciated. :)
Everything else seems to be fine....got rid of the errors after running botloader.php, but I haven't turned the bot "on" yet. Just want to make sure everything is in order before I do.
You can edit the "bot" table, but not the "bots" table. The bot table has the gender, name of the bot, favorite book, food, etc.
Floris
01-29-2003, 10:21 PM
This is a big thread, and I have not followed it.
Can the bot be set to just 1 forum ?
Can the bot be set to just follow 1 thread ?
Can the bot be set to just follow 1 category ? (and therefor all forums + subforums within that category ?
Can the bot be set to NOT reply to certain users ?
Can the bot be set to NOT have the same awnser twice or more in the same thread ?
Can the bot be set to NOT reply more then X times in a thread ? (so after 5 posts or so, it will not reply no more to prevent big useless threads) ?
Simms
01-29-2003, 11:42 PM
Originally posted by jbear6
You can edit the "bot" table, but not the "bots" table. The bot table has the gender, name of the bot, favorite book, food, etc.
The only fields in my "bot" table are "id", "bot", "name", and "value"....and there is 0 bytes of data in the table.
Would it be safe to say there's something wrong at this point? :)
jbear6
01-30-2003, 12:29 AM
Originally posted by Simms
The only fields in my "bot" table are "id", "bot", "name", and "value"....and there is 0 bytes of data in the table.
Would it be safe to say there's something wrong at this point? :)
I would say that is a safe assumption :)
If your "Browse" link is not active in the bot table, there is definately something wrong.
Doogie
01-30-2003, 02:09 AM
I've got a couple of issues some of which have been mentioned already.
1) How easy is it to get him to do something else apart from reply with a smilie??
2) We're trying to pass him off as a real user. Is there anyway to delay his response a bit so he doesn't post like 'right' away??
Erwin
01-30-2003, 02:21 AM
Cool, Martin, I will check out your other thread. :)
My bot has nearly 6,000 posts in under 2 days!!! :o
scsa20
01-30-2003, 05:27 AM
okey, how come it only puts down simlies and doesn't answer my questions?? (even after adding some more things for it to learn from)?? anyone know what's up with that??
kmfdm_kid2000
01-30-2003, 07:30 AM
Originally posted by jbear6
I would say that is a safe assumption :)
If your "Browse" link is not active in the bot table, there is definately something wrong.
I have the same exact problem...After reading the ENTIRE thread, no one has a solution?? C'mon, I want my Bot too you know, a few of us do LOL :p https://vborg.vbsupport.ru/
EDIT: I'm using 2.2.6, c'mon, no one has a successful install yet?? Guess when I'm the first, I'll post so...Not a WHOLE lot of difference between versions, there is, but I think with the very MINOR PHP additions this hack asks you to edit in, I don't forsee there being a problem, with mine, I assume this is a Database issue...
EDIT #2!!! Nevermind, works perfectly!!!
Only problem is for some reason, it didn't reply to a New Thread, but I'll iron it out ;) That means a SUCCESSFUL 2.2.6 INSTALLATION
Ember
01-30-2003, 07:56 AM
Originally posted by scsa20
okey, how come it only puts down simlies and doesn't answer my questions?? (even after adding some more things for it to learn from)?? anyone know what's up with that??
You need to run botloader.php - read through the thread to find solutions if you already have.
Simms
01-30-2003, 12:31 PM
Originally posted by kmfdm_kid2000
I have the same exact problem...After reading the ENTIRE thread, no one has a solution?? C'mon, I want my Bot too you know, a few of us do LOL :p https://vborg.vbsupport.ru/
snip
EDIT #2!!! Nevermind, works perfectly!!!
Okay, so what did you do to fix the "bot" table problem? Does it populate itself after the bot's first post, or is there something else I have to do (pleeeeease don't say fresh install :) )?
Automated
01-30-2003, 02:49 PM
My BOT table is empty and mu bot is working.
Brainmaster
01-30-2003, 03:33 PM
Hi,
I have read these are made to 300,000 queries in the database?
Wouldn't this know the database to flood and how much MB does this take in the database?
Martin64
01-30-2003, 07:13 PM
Originally posted by Brainmaster
Hi,
I have read these are made to 300,000 queries in the database?
Wouldn't this know the database to flood and how much MB does this take in the database?
Your database will grow with about 16 MB. :)
Lesane
01-30-2003, 07:24 PM
Great hack, installed without any problems.
Martin64
01-30-2003, 07:57 PM
Originally posted by xiphoid
This is a big thread, and I have not followed it.
Can the bot be set to just 1 forum ?
Can the bot be set to just follow 1 thread ?
Can the bot be set to just follow 1 category ? (and therefor all forums + subforums within that category ?
Can the bot be set to NOT reply to certain users ?
Can the bot be set to NOT have the same awnser twice or more in the same thread ?
Can the bot be set to NOT reply more then X times in a thread ? (so after 5 posts or so, it will not reply no more to prevent big useless threads) ?
And you expect us to answer your questions if you haven't read the thread? :paranoid: Just kidding. :p
Can the bot be set to just 1 forum ?
Yes, and in fact, it only replies to one forum by default.
Can the bot be set to just follow 1 thread ?
Yes. (not a setting, but easily hackable)
Can the bot be set to just follow 1 category ? (and therefor all forums + subforums within that category ?
The bot will only reply to posts in one forum (setting in tomstalkerbot.php)
Can the bot be set to NOT reply to certain users ?
Yes. (not a setting, but easily hackable)
Can the bot be set to NOT have the same awnser twice or more in the same thread ?
Nothing is impossible, but it sounds hard to do. :(
Can the bot be set to NOT reply more then X times in a thread ? (so after 5 posts or so, it will not reply no more to prevent big useless threads) ?
Yes. (not a setting, but easily hackable)
Let me know if you install this and need help customising it for your needs. :o
kmfdm_kid2000
01-30-2003, 09:58 PM
Originally posted by Simms
Okay, so what did you do to fix the "bot" table problem? Does it populate itself after the bot's first post, or is there something else I have to do (pleeeeease don't say fresh install :) )?
I dunno, it just started working, it trully is amazing, but I never found anywhere to change the Bot ID# to 0...It still doesn't work on replying to a brand new thread, only to new posts, and I have mine in multiple forums, that works fine...
Mine is Female, named Celeste...I tried to pass her off as human, but she's still an infant, and too bot-like...My users are too smart for that, but put it this way, the past week, we've slumped to a measly 100 posts per day, it's 7PM EST so far, over 1,100 posts TODAY, and it's not over...Our record is 1,337 (What a number, eh??) posts in a single day...We'll break that. Even if 1/2 the posts are the bot, it's still 500 user posts, that's still more than 100 :p
The Bot sounds like an idiot if you think she's human, but once you know it's a bot, it's quite amusing...Don't try to pass it for human, it says it's a bot in posts. Well, unless your users are incredibly stupid, but then why did you pay for vB to house stupid users?? Go get an EZ-Board LOL https://vborg.vbsupport.ru/
Got it working... I think.
http://www.geoexpat.com/forum/showthread.php?s=&postid=75#post75
This would be brilliant if I can set ALF loose on the site to answer repetitive questions people have.... "what are the best jobs sites", "which are the best bars in hong kong" etc etc.
Shri
Beorn
01-30-2003, 11:32 PM
From my Tom:
Originally posted by Beorn
You like to screw your mom
Originally posted by TomBot
Hmm, Mike, I'm not sure if I'd like to screw your mom that much.
I like to make new friends. :(
Originally posted by Beorn
You are so dumb
Originally posted by TomBot
Message to all Robots: Christina called me dumb.
Originally posted by Beorn
I am not Christina! I am Mike!
Originally posted by TomBot
I am sorry to hear that you are not Christina.
Hi Mike, I know someone else named Mike too.
....Later On...
Originally posted by Beorn
Repeat after me: I am not a computer program
Originally posted by TomBot
Repeat after me: I am not a computer program
OK. "You am not a computer program." :(
Originally posted by TomBot
Repeat after me: You are not a computer program
Originally posted by TomBot
Repeat after me: You are not a computer program
"You are not a computer program" :cool:
FYI .. I get the following response.
Message to all Robots: called me dumb.
Am I possibly missing a table with names in it?
Can someone do this for me please?
mysql> select * from patterns limit 20;
+-----+----+---------+--------+--------+-------+
| bot | id | word | ordera | parent | isend |
+-----+----+---------+--------+--------+-------+
| 0 | 1 | <input> | 2 | 0 | 0 |
| 0 | 2 | 1 | 2 | 1 | 0 |
| 0 | 3 | NULL | 3 | 2 | 1 |
| 0 | 4 | <that> | 2 | 3 | 0 |
| 0 | 5 | NULL | 3 | 4 | 1 |
| 0 | 6 | <topic> | 2 | 5 | 0 |
| 0 | 7 | NULL | 3 | 6 | 1 |
| 0 | 8 | | 2 | 7 | 0 |
| 0 | 9 | 0 | 2 | 2 | 1 |
| 0 | 10 | <that> | 2 | 9 | 0 |
| 0 | 11 | NULL | 3 | 10 | 1 |
| 0 | 12 | <topic> | 2 | 11 | 0 |
| 0 | 13 | NULL | 3 | 12 | 1 |
| 0 | 14 | | 2 | 13 | 0 |
| 0 | 15 | <that> | 2 | 2 | 0 |
| 0 | 16 | NULL | 3 | 15 | 1 |
| 0 | 17 | <topic> | 2 | 16 | 0 |
| 0 | 18 | NULL | 3 | 17 | 1 |
| 0 | 19 | | 2 | 18 | 0 |
| 0 | 20 | CENT | 2 | 2 | 1 |
+-----+----+---------+--------+--------+-------+
I want to make sure that the "NULL" is valid and i've not screwed up the loading.
kmfdm_kid2000
01-31-2003, 03:34 AM
The first day with "Celeste" Ended with almost 3,000 posts TOTAL...About 2,800. The Bot made 1,300 posts. Meaning my users posted about 1,500 posts. THIS GETS PEOPLE TALKING LIKE NO OTHER HACK I HAVE SEEN BEFORE!!!
The Previous day, we had 116 posts. That's down from an average of about 600 a day. We hit a slump, but this hack just had the TOTAL opposite effect. It's very entertaining. I'd hate to see the novelty wear off any time soon...Now watch all of my lousy competators install it :p I had it first *Hee Hee*
This hack was a pain to install, but the pay out was worth evey bit of it ;)
Sanni
01-31-2003, 04:10 AM
Originally posted by kmfdm_kid2000
SUCCESSFUL 2.2.6 INSTALLATION
woot! clicks install
wish me luck :bunny:
Sanni
01-31-2003, 04:43 AM
works perfectly, awesome hack! :)
one question though...is there any way to set a time delay between when a post is made to when it replies.........atm it replies immediatly after i hit the submit post button, and by the time the thread is reloaded his response is already there...any way to delay him for a sec or two?
Mijae
01-31-2003, 04:44 AM
Why does my bot reply with smilies half the time? I have 42.500 entries for it!
Sanni
01-31-2003, 06:03 AM
ok our forum/sql guru OzRoy (i am posting on his behalf because he doesnt currently have a forum account here) created a time delay feature for the bot response times. These code changes will make the bot post randomly between a time delay of 30 secs to 2 mins :)
this has only been tested in VB 2.2.6 btw
to get the random response delay times modify the following:
showthread.php
stalkerbot.php
***********showthread.php************
Find the SQL statement that looks like:
$getpostids=$DB_site->query("
SELECT post.postid FROM post
WHERE post.threadid='$threadid' AND post.visible=1
ORDER BY dateline $postorder LIMIT ".($limitlower-1).",$perpage
");
and replace it with:
$getpostids=$DB_site->query("
SELECT post.postid FROM post
WHERE post.threadid='$threadid' AND post.visible=1 AND post.dateline <= ".time()."
ORDER BY dateline $postorder LIMIT ".($limitlower-1).",$perpage
");
************edit the file tomstalkerbot.php************
add the following lines (up the top somewhere)
define("EARLIEST_REPLY", 20);
define("LATEST_REPLY", 120);
define ("EARLIEST_REPLY", 20);
define("LATEST_REPLY", 120);
Then find the line that looks like:
$ttb_time = time() + rand(1,5);
And change it to:
$ttb_time = time() + rand(EARLIEST_REPLY,LATEST_REPLY);
thats it! :)
we have this feature running on our forums at http://www.ozforums.com Atm we are training the bot up prior to public release. Once it is publically available i'll post a link to where you can see a live demo of this feature in action (prolly some point later on tonight) :)
darker1
01-31-2003, 11:55 AM
can someone please make and include a .htaccess file with the line: php_flag allow_call_time_pass_reference on
I've never played with .htaccess before. Tried to use that line as the only thing within the .htaccess file, but that just shut down my forum :)
Crazy Pete
01-31-2003, 12:24 PM
Originally posted by shri
FYI .. I get the following response.
Am I possibly missing a table with names in it?
I have the same thing here. I didn't try introducing myself to it yet, maybe that's why?
Crazy Pete
01-31-2003, 12:40 PM
Originally posted by Automated
Does this thing actually improve or does it stay as it is? I mean you said that it would learn but it doesnt remember anything you tell it and it doesnt seem to be improving its grasp of things :(
How do i get it to improve?
Thanks
Matthew
I'm wondering the same thing. Granted, I just put my bot online last night but still...does it actually learn anything and get to a point where it's conversing more naturally?
Automated
01-31-2003, 01:03 PM
Originally posted by Crazy Pete
I'm wondering the same thing. Granted, I just put my bot online last night but still...does it actually learn anything and get to a point where it's conversing more naturally?
I would like to know the answer to that also.
Crazy Pete
01-31-2003, 01:12 PM
Originally posted by shri
Can someone do this for me please?
I want to make sure that the "NULL" is valid and i've not screwed up the loading.
I have that as well. Interestingly, when I ran all the AIML files, it gave me a different # of categories inserted. I had 33,500-something rather than the 41k+ everyone else seems to get even though I loaded all the files.
NuclioN
01-31-2003, 04:31 PM
Sanni, your hack slows down the reply but...when the bot reply's it puts the reply on top of the thread, so above the first posting.
Martin64
01-31-2003, 05:21 PM
I have just released vBTeachbot 2.0, so if you wish to teach your bot, you better install it! Grab it here:
https://vborg.vbsupport.ru/showthread.php?threadid=48291
BTW, you bot isn't really self-learning (well it is, but just to an extent), so you need to teach it yourself. I hope this isn't considered blatant advertising for my own hack. If you want to see proof of that the hack is really working (my mods have just started added questions and are having a lot of fun :D), view this thread:
http://www.emutalk.net/showthread.php?postid=114589#post114589
Simms
01-31-2003, 06:34 PM
Originally posted by kmfdm_kid2000
I dunno, it just started working, it trully is amazing, but I never found anywhere to change the Bot ID# to 0...It still doesn't work on replying to a brand new thread, only to new posts, and I have mine in multiple forums, that works fine...
Mine is Female, named Celeste...I tried to pass her off as human, but she's still an infant, and too bot-like...My users are too smart for that, but put it this way, the past week, we've slumped to a measly 100 posts per day, it's 7PM EST so far, over 1,100 posts TODAY, and it's not over...Our record is 1,337 (What a number, eh??) posts in a single day...We'll break that. Even if 1/2 the posts are the bot, it's still 500 user posts, that's still more than 100 :p
The Bot sounds like an idiot if you think she's human, but once you know it's a bot, it's quite amusing...Don't try to pass it for human, it says it's a bot in posts. Well, unless your users are incredibly stupid, but then why did you pay for vB to house stupid users?? Go get an EZ-Board LOL https://vborg.vbsupport.ru/
Well, it's working great on my forum, empty "bot" table or not. However, I'll often see it post something like
I like .
It's obvious that there's supposed to be something before the period, but it can't pull the relevant info. This has come up in discussions about favorite authors, etc. Remember in the install file said that you could edit its favorite foods, etc., I'm assuming this is why those places are blank. I also can't edit its name (it still calls itself Alice).
Any help out there for this? TIA!
Crazy Pete
01-31-2003, 06:40 PM
Why won't my bot get names correctly? It never addresses anyone by name even when I introduce myself (for instance). It also does this a lot: "I haven't heard anything like that before:
said I son of a +++++ why did not me respond to Tim." (btw it mentions Tim there because I did in my question to it)
Sanni
01-31-2003, 11:38 PM
Originally posted by NuclioN
Sanni, your hack slows down the reply but...when the bot reply's it puts the reply on top of the thread, so above the first posting.
hmm that doesnt happen on my board, his posts go to the end of the thread....... I must have forgotten to include some of the mods in my previous post sorry :( I'll chat to Roy and find out what I have left out.
one thing i have noticed about this little hack though is that even though he hasnt replied to the thread yet, in the thread display index it still shows him as being the last poster... i'll see if i can get that rectified as well.
apologises for the incorrect install info in my previous post, i'll update it as soon as i know what i misssed.
OzRoy
02-01-2003, 02:09 AM
Originally posted by NuclioN
Sanni, your hack slows down the reply but...when the bot reply's it puts the reply on top of the thread, so above the first posting.
Hi.
I'm the one who made the changes Sanni posted.
To be honest I have no idea why the bots reply would be showing up first. The only thing I can think of is there is a mistake in the SQL statement in the showthread file you had to change.
The ORDER BY is wrong, or you changed the wrong query. The query you have to change should be around line 385. Close to the end of the file.
OzRoy
02-01-2003, 02:20 AM
The exact changes that I made are:
Change showthread.php
Around line 385 change the following SQL query
$getpostids=$DB_site->query("
SELECT post.postid FROM post
WHERE post.threadid='$threadid' AND post.visible=1
ORDER BY dateline $postorder LIMIT ".($limitlower-1).",$perpage
To:
$getpostids=$DB_site->query("
SELECT post.postid FROM post
WHERE post.threadid='$threadid' AND post.visible=1 AND post.dateline <= ".time()."
ORDER BY dateline $postorder LIMIT ".($limitlower-1).",$perpage
Then edit your tomstalkerbot.php
Add the lines
define ("EARLIEST_REPLY", 20);
define("LATEST_REPLY", 120);
just under
$ttb_weighting = 100;
Then around line 56 change
$ttb_time = time() + rand(1,5);
to:
$ttb_time = time() + rand(EARLIEST_REPLY,LATEST_REPLY);
That should be it. These changes were made to version 2.2.6
There are a couple bugs that I haven't had time to fix yet. 1) the bot will show as the latest poster even though his post won't show yet.
2) If the bots post goes over to the next page then the links for the next page will show, but the bots post won't show till the time it is supposed to.
Mickie D
02-01-2003, 06:05 AM
will this bot ever be able to know who each person is ???
i mean is there a way for him to be able to read the poster userid and reply to them ???
P.S this is by far the best hack i have ever used (and i been hacking for many moons now) *clicked install*
if people got together on this it could be something huge (it is already lol)
Radgam
02-01-2003, 02:56 PM
Originally posted by Mickie D
will this bot ever be able to know who each person is ???
i mean is there a way for him to be able to read the poster userid and reply to them ???
I'd like to know that too ;)
Mickie D
02-01-2003, 03:10 PM
BUMP
h8 bumping but if this could be achieved the level of this hack would increase 100% !!!!
Automated
02-01-2003, 03:31 PM
Originally posted by Mickie D
BUMP
h8 bumping but if this could be achieved the level of this hack would increase 100% !!!!
Agreed! It keeps calling all of my members Matthew! Which is me :(
Would be a great addition and would easily make this the HOTM :p
Matthew
Radgam
02-01-2003, 03:52 PM
And i think the AI files need some work... the answers the robot comes out with from time to time are a little strange, and i don't mean just because it doesn't understand them, sometimes it does but just says weird stuff... ;)
Steve Machol
02-01-2003, 03:54 PM
Originally posted by Radgam
... the answers the robot comes out with from time to time are a little strange, and i don't mean just because it doesn't understand them, sometimes it does but just says weird stuff... ;) And this is different from a regular user in what way? ;)
Radgam
02-01-2003, 03:55 PM
lol, well, a good point ;) He said he was female but i set him to male for starters... bit worrying ;)
bandersen
02-01-2003, 04:56 PM
Did anyone try to use the paid version of Alice... has some 1000 more questions/answers included I think (correct me if I am wrong). When I tested the bot on www.alicebot.org it did not sound as "off" as the talk.html /php (I am trying to install).
A personality test has been added to it also. The bot simply inserts hidden personality test questions into the dialogue, and makes up her mind about your personality type. You can then ask "what is my personality type?". Sound pretty cool...
Crazy Pete
02-01-2003, 05:40 PM
That does sound cool, banderson. I also checked it out a bit and noticed that there's another bot out there supposedly even more "human-like," and one that will (they claim) pass the Turing Test. It's called the AnnaBot, based on ALICE. Anyone know how we could maybe integrate that one into this hack instead of/alongside Alice?
Here's the link:
http://www.lfay.net/anna/index.html
Radgam
02-01-2003, 08:48 PM
tested, and yes, this bot does seem more intelligent. Works fine without many modifications either. sadly there are a few problems in one of the XML files (the "topics.aiml" file), so you need to sort out some tags, but asides from that, conversation is much better than with alice.
WizyWyg2
02-01-2003, 11:00 PM
Installed and works perfectly!
Thanks...
OzRoy
02-01-2003, 11:57 PM
Originally posted by Radgam
tested, and yes, this bot does seem more intelligent. Works fine without many modifications either. sadly there are a few problems in one of the XML files (the "topics.aiml" file), so you need to sort out some tags, but asides from that, conversation is much better than with alice.
What are the problems with the file? And what needs to be changed?
The other thing is. How do you go about installing it? I already have the other one installed on my forum. Can I just replace the AIML files and run the install script again, or should I delete the current tables and recreate them?
Zombie
02-02-2003, 01:03 AM
I was wondering this to, can we use those Anna AIML files instead of the ones with this hack?
My bot seems REALLY stupid...
Brahm
02-02-2003, 01:25 AM
Works great -- Instructions were easy... Thanks!
Mickie D
02-02-2003, 08:22 AM
Originally posted by Radgam
tested, and yes, this bot does seem more intelligent. Works fine without many modifications either. sadly there are a few problems in one of the XML files (the "topics.aiml" file), so you need to sort out some tags, but asides from that, conversation is much better than with alice.
@ radgam
you gonna give us some insrtuctions on how to do this
i love this hack, but my bot dont learn much, he calls members the same names all the time :(
do these bots originaly work in chatrooms ???
and if yes i would think that they could see names of people
please please please can someone try to work a way for the bot to remember names or see the user name of the members, it would make the whole bot experiance like 100% better, and i think the bot might even learn more that way :)
Radgam
02-02-2003, 10:25 AM
To get annabot to work (roughly) - in folder alice/aiml:
download the annotbot AIML files only
delete all the files in the aiml folder (except startup.xml)
Move the annabot aiml files into the folder alice/aiml
run botloader.php again
Overall the bot is smaller in size (8mb) and the discussion does seem more human, but don't expect massive massive changes... it still gets confused from time to time!
A problem i have encountered though, is that the annobot won't remember information on people (none at all!) which i am working on at the moment to see where the problem is.
Also, I'm currently working on a hack to allow the bot to remember information on individual members. I'll let you know if i manage :)
The problem with the topics.aiml was the order in which the tags were closed (or not closed for that matter). I've uploaded 2 files i fixed to save you time. Nothing major :)
Edit: topic.aiml & d.aiml fixed download :) ZIpped wrong files last time :(
NuclioN
02-02-2003, 11:28 AM
There is a problem with the D.aiml. It gives an error in xmlspy and it stops loading with botloader. Can't find it though...
--edit-- topic.aiml has a mismatch to somewhere
Radgam
02-02-2003, 12:59 PM
is there a problem in the files i uploaded as well? I've reuploaded the files and tested them and they worked fine :)
Radgam
02-02-2003, 01:03 PM
I'm working on the AIML files for ANNA (so you can choose the name and such) and i have been able to allow the robot to remember information about each user.
I'll write up the details as long as some further testing works okay :)
Edit:
Okay, tested everything and it works fine. I'm currently working on the annabot AIML files and i'll let you all know when i'm done :)
Should i release it as a seperate/addon hack?
the only thing is the vb userid is passed in the query string so in theory the bot could be open to abuse but i wouldn't say it's much of a problem. Most that can happen is that people could change what name is remembered for you etc, but the robot is setup in such away already that is clears information on you have x mins (120 i think).
Eh, yeah, well, i hope that makes sense :)
I'll post all the information on it soon.
NuclioN
02-02-2003, 01:42 PM
Great work Radgam. :)
Do I need to create a new DB, or can I use my default vbulletin DB ??
tnx !
NuclioN
02-02-2003, 03:38 PM
You can use the vb database without a problem. ;)
When I run botloader.php for the first time, there is no action.
my browser directly says done...
what can it be ?
NuclioN
02-02-2003, 03:49 PM
Did you fill in the info in dbprefs.php? Are the aiml files in the right directory and are all files chmod 777?
Originally posted by NuclioN
Did you fill in the info in dbprefs.php? Are the aiml files in the right directory and are all files chmod 777?
yep, for as far as I know.
this is what I enterred as rootdir:
$rootdir="/var/www/html/portal/forum/alice/aiml/";
or does it need a relative path instead of a absolute path ?
DONE LOADING
Inserted 312 categories into database
hmzzz, I thougt the system had to load al lot more.....
Brain Crusher
02-02-2003, 05:28 PM
how it works?
I have the english version of vbb but with german postings, does the bot reply in english or german?
when I post a message on my board, my bot wil respond:
en ik blijf nog ff testen.
<html>
<head>
<title>Program E Tester</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="talk.php">
Talk to: <select name="botname">
<option value="Bone">Bone</option> </select><BR>
Input: <input type="text" name="input" size="55">
<input type="submit" name="Submit" value="Submit">
</form>
</body>
</html>
^:^
little bit strange :P
Erwin
02-02-2003, 09:22 PM
Originally posted by Radgam
Edit:
Okay, tested everything and it works fine. I'm currently working on the annabot AIML files and i'll let you all know when i'm done :)
Should i release it as a seperate/addon hack?
Yes. Release it as a separate hack addon, basically because you can give support to it in a separate thread. Plus you seem to have put a lot of work into it. :)
OzRoy
02-02-2003, 10:50 PM
Originally posted by Radgam
tested, and yes, this bot does seem more intelligent. Works fine without many modifications either. sadly there are a few problems in one of the XML files (the "topics.aiml" file), so you need to sort out some tags, but asides from that, conversation is much better than with alice.
OK I just installed the anna AIML. There are a LOT of errors. I'll list them all here so you can fix them up if you really want to.
File: D.aiml
Line 6210 Put </srai> after <star/>
File: test.aiml
(forgot to write down the line)
Change </categroy> to </category>
move </aiml> to end of file
File: topics.aiml (This is the big one)
Line 163 remove stray <li>
Line 168 add </srai> before </template>
Line 184 change <li> to </li>
Line 183 change <get ... > to <get ... />
Line 335 remove stray <li>
Line 670 add </template> </category>
Line 765 add </li>
Line 774 add </template>
Line 813 change to </template>
Line 942 remove </random>
I think thats all. Make sure you check what you are putting in. I may of made a couple mistakes in my notes. But at least you now know where the errors are appoximatly.
Schorsch
02-03-2003, 01:35 AM
anybody got this working with the german bot files ?
Radgam
02-03-2003, 08:41 AM
thanks :)
I got most of them on the last page (i think) and uploaded a zip but i'll double check before releasing it. I also noticed that program e can't handle things like <person /> only <person/> (noticed the second doesn't have the space) so that will be sorted in the AIML files for Anna as well.
I hope to have everything ready today but i'm changing part of the install file (so the bot is more accurate with things like it's name) and i have to write another set of files so you can have a male bot as well as a female bot (which works better than using <bot name="gender"> as you can't use it in a AIML <pattern> match).
~Radgam
Radgam
02-03-2003, 06:15 PM
I've got an idea for what you might call a "superhack"! ;) But i would need help from anyone/everyone interested in AIML & the alice bot to contribute if you can because it's way too large a project for me to write on my own (or maybe i could but i'm slow, unimaginative and it would probably take me a life time!).
If you've looked through patterns and template answers in the AIML files you'll probably notice that all conversation is actually very specific to the purpose it was written, that is, to finish high in that AI competition. It's probably the best thing to do if you want to win, but it's not very helpful if you want to use it on your site. For example, a large amount of the annabot files are based on Atlanta as that is where the competition was held (well, quite a bit of it is anyway).
vbAI: That would be the artificial intelligence files used to power the system. These would be written by anyone interested in AI (including myself) to be fairly non-specific meaning when you install the bot on your forum is when you actually make everything more specific (ie: placenames - all talk relating to the place your bot 'lives' would just be a variable and would be set when the bot is installed). This would be the same with the bots name etc.
cAIML: Conditional Arificial Intelligence Markup Language - Mostly the same as the ALICE bot is, but with a twist. I've noticed on my own forum where the bot is installed, and by looking though the AIML files you will sometimes see things like
<template>do you like living in <get name="location"/>.</template> - that's all good and well, but what if the bot doesn't know where that member lives yet? You get "do you like living in ."
cAIML would allow you to use PHP coding (or similar) in a template, to find out first if that information on someone is actually known. If so, proceed with the template, if not, ask them where they live then come back to the template.
---------------------
Okay, i know it's a pretty large project but i think if it was a combined effort (esp with writing the AI files) we could make a pretty cool AI system and with better discussion than the ones currently out there.
If anyone is insterested, let me know :) Also, i'm not the best php programmer in the world (understatement!) so even if you aren't interested in AI, help with the programming side is just as important as i haven't work out how to do all of the stuff yet :)
Shane_2k
02-03-2003, 07:18 PM
Hi will this work with 2.2.2
thanks .alot
Automated
02-03-2003, 07:23 PM
Originally posted by Radgam
I've got an idea for what you might call a "superhack"! ;) But i would need help from anyone/everyone interested in AIML & the alice bot to contribute if you can because it's way too large a project for me to write on my own (or maybe i could but i'm slow, unimaginative and it would probably take me a life time!).
If you've looked through patterns and template answers in the AIML files you'll probably notice that all conversation is actually very specific to the purpose it was written, that is, to finish high in that AI competition. It's probably the best thing to do if you want to win, but it's not very helpful if you want to use it on your site. For example, a large amount of the annabot files are based on Atlanta as that is where the competition was held (well, quite a bit of it is anyway).
vbAI: That would be the artificial intelligence files used to power the system. These would be written by anyone interested in AI (including myself) to be fairly non-specific meaning when you install the bot on your forum is when you actually make everything more specific (ie: placenames - all talk relating to the place your bot 'lives' would just be a variable and would be set when the bot is installed). This would be the same with the bots name etc.
cAIML: Conditional Arificial Intelligence Markup Language - Mostly the same as the ALICE bot is, but with a twist. I've noticed on my own forum where the bot is installed, and by looking though the AIML files you will sometimes see things like
<template>do you like living in <get name="location"/>.</template> - that's all good and well, but what if the bot doesn't know where that member lives yet? You get "do you like living in ."
cAIML would allow you to use PHP coding (or similar) in a template, to find out first if that information on someone is actually known. If so, proceed with the template, if not, ask them where they live then come back to the template.
---------------------
Okay, i know it's a pretty large project but i think if it was a combined effort (esp with writing the AI files) we could make a pretty cool AI system and with better discussion than the ones currently out there.
If anyone is insterested, let me know :) Also, i'm not the best php programmer in the world (understatement!) so even if you aren't interested in AI, help with the programming side is just as important as i haven't work out how to do all of the stuff yet :)
I am in the process of setting up a community site that will serve as the AI chat bot development forums. I will be promoting it so that people will come and chat with the bot about as many diverse topics as possiable and also allow members to submit "intelegence" to the bot and once it is verified by a Mod or admin it will be added to the database.
Then the database will be released :D
I cant wait to get the ball rolling, I am also looking for a PHP knowledgeable VB hacker to help me with a small bit of the project (NO AI knowledge is required)
Thanks
Matthew
Shane_2k
02-03-2003, 07:56 PM
HELP i get a BIg nasty error
Loading startup.xml
Warning: OpenDir: No such file or directory (errno 2) in /usr/local/psa/home/vhosts/nok-forums.co.uk/httpdocs/vb/alice/src/admin/botloaderfuncs.php on line 531
Warning: Supplied argument is not a valid Directory resource in /usr/local/psa/home/vhosts/nok-forums.co.uk/httpdocs/vb/alice/src/admin/botloaderfuncs.php on line 532
Warning: Supplied argument is not a valid Directory resource in /usr/local/psa/home/vhosts/nok-forums.co.uk/httpdocs/vb/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: 0.258089
Templates per second=0
Templates per minute=0
please help
Shane_2k
02-04-2003, 05:58 AM
anyone please help
Shane_2k
02-04-2003, 06:23 AM
i get it going i got rid of the erros it keeps saying can;t find sever after bout 5 mins the botloader has beenn trying to go up?
Shane_2k
02-04-2003, 11:40 AM
done it now
Sc0rp
02-04-2003, 09:54 PM
well all of the install went fine untill I went for the botloader.php.. it loads untill the A.aiml after that it says page done loading and nothin happens from there :( should I just wait????
Erwin
02-04-2003, 10:57 PM
It's 300,000 db entries, and can take up to 30 minutes. Also some servers do timeout as well. Read the thread on solutions to this.
Erwin
02-05-2003, 07:38 AM
Mmm... this hack sucks up more than its fair share of server load, so I've had to remove it while I try to tweak it a bit. I'm still interested in Radgames ANNA bot version. We shall see what I can do...
Erwin
02-05-2003, 08:28 AM
I've just replace ALICE with ANNA. We shall see how it goes... :)
Zombie
02-05-2003, 09:11 AM
I replaced mine with Anna also but "she's" just as stupid as Alice
rrnolan
02-05-2003, 04:26 PM
In reading the install manual one part says to
Login to phpmyadmin and check in the 'bots' table that the bot id is 0 you find that the table 'bot's the id number in there needs editing to 0 from 1 in some cases
When I look at the bots table it is empty, should there be an entry in there? I looked at the sql script and did not see any insert lines? If there should be an entry what should it be and how do I get it in there?
rrnolan
02-05-2003, 05:20 PM
How can i change the smiles it trys to use? I don't have the same ones installed
mheinemann
02-05-2003, 05:43 PM
Originally posted by rrnolan
How can i change the smiles it trys to use? I don't have the same ones installed
Open tomstalkerbot.php, look for
$emot = array(":)",":(",":xmas:",":D",":baaa:",":cool:",":rolleyes:",":mad2:");
$emoticon = " " . $emot[rand(0,7)];
That's where you can edit the smilies. If you add more, make sure you change the number in the rand() funciton.
Something you can do for fun with your bot is login as him and post in area's he usually can't post.
Radgam
02-05-2003, 08:15 PM
I've posted information allowing the bot to remember discussions with individual users. http://www.vbulletin.org/hacks/index.php?s=&action=showhack&hackid=930
AnnaBot to be released soon, but i am also planning to write my own set of AI files! If anyone is interested, please send me a PM :)
Sebastian
02-05-2003, 11:15 PM
execution time: 274.145411
Templates per second=295.015277841
Templates per minute=9000.91667046
ah the power of a pentium ;)
I installed this, is it possible to slow the bot down from posting as soon as you post? I make a post and as soon as i redirect back to the thread the bastard already posted! LOL, maybe a few min delay?
Erwin
02-06-2003, 12:43 AM
There's a post in this thread telling you how to delay the AI's reply. It works.
Mijae
02-06-2003, 01:17 AM
I hope ANNA bot is way smarter then ALICE :D
My bot is stupid, and my members would love to have a smarter one :)
Erwin
02-06-2003, 01:27 AM
Unfortunately, ANNA bot is just as dumb. :) Which is why I won't be releasing her to the public...
Ok so far the installation instructions have been fairly simple! But im struggling here at on spot...Where in dbprefs.php it asks me to show apath to aiml. does it was want me to show a path like www.mysite.com/forums/alice/aiml?
sorry for the double post...but here is my problem...ok i ran the sql folder and its now on the database so i then went to run the botloader.php and here is my error of doom!
Loading startup.xml
Warning: fopen("forums/alice/aiml/startup.xml", "r") - No such file or directory in /home/finalfan/public_html/forums/alice/src/admin/botloaderfuncs.php on line 508
could not open XML input
Help me please :(
Mijae
02-06-2003, 02:36 PM
Do you have the AIML files in /alice/aiml?
There should also be a startup.xml file in that folder.
Martin64
02-06-2003, 03:07 PM
Anyone interested in a FAQ bot? The bot would only reply to questions you have taught it and would therefore not clutter your board with weird responses. :p. The bot would/could be used board wide, and could come very useful if you have people just signing up to request downloads and whatnot.
It wouldn't need to be a FAQ bot either, as you could teach it anything and it would only reply if it it recognized the input, and to some extent you could fool your members into it being a real person ;).
I have modified tomstalkerbot.php from the TomBot v1.1 release to do just this, so if there's interest and if I have permission from C.Birch, I'll release it.
If there's interest, I'll bundle it with vBTeachbot, which I've found to be ideal for adding questions and answers to the FAQ bot. I've installed a FAQ bot on my local test board, and it does what it's supposed to. :)
rrnolan
02-06-2003, 03:15 PM
Would there be a way to put in your sites own FAQ's as well. I get so many lamer questions over and over about various PC games and such
Martin64
02-06-2003, 03:20 PM
Originally posted by rrnolan
Would there be a way to put in your sites own FAQ's as well. I get so many lamer questions over and over about various PC games and such
Yeah, that's the idea. :)
You'd enter your Frequently asked questions with vBTeachbot through your Mod CP or Admin CP:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=48291
NuclioN
02-06-2003, 03:26 PM
Good news Martin, looking forward to it ;)
Radgam
02-06-2003, 03:51 PM
Originally posted by Erwin
Unfortunately, ANNA bot is just as dumb. :) Which is why I won't be releasing her to the public...
And the same reason i've decided not to release AnnaBot as a hack now as well. It's not worth the effort at the end of the day ;)
I feel that some of the answers are more human like (ALICE just loves to tell everyone it's an AIBot) but overall, there isn't enough of an improvement for me to spend more time on it! You'd be better off writing your own AI (which if anyone is interested in, i'd be happy to work with a group of people to write).
Martin64, the FAQ bot sounds like a great idea! I'd be interested if you released it.
Mickie D
02-06-2003, 05:14 PM
is there just no way to interact the bot with the username so they atleast know who they are talking to ???
this would be a 100% improvement let alone making super bots lol
but good work all you that love this hack, its gr8, i wait for the day for that dumb ass bot to start getting his revenge :)
Dribbles
02-06-2003, 06:00 PM
Does this mod really use up a lot of server power/resources and bandwidth? thinking of installing it
Radgam
02-06-2003, 06:09 PM
Originally posted by Mickie D
is there just no way to interact the bot with the username so they atleast know who they are talking to ???
this would be a 100% improvement let alone making super bots lol
but good work all you that love this hack, its gr8, i wait for the day for that dumb ass bot to start getting his revenge :)
I've released a hack so the bot remembers information on each user after talking to them. It can be found here:
http://www.vbulletin.org/hacks/index.php?s=&action=showhack&hackid=930
It only gathers information after talking to someone but when you go back and talk to the vBAI Userbot is will remember previous discussions with each member (and their name and any other details the member gave)
oly51
02-07-2003, 01:00 AM
Martin64: An FAQ Bot would be an ideal way to deal with the newbie questions. Add me to the list!!
Automated
02-07-2003, 09:50 AM
Originally posted by oly51
Martin64: An FAQ Bot would be an ideal way to deal with the newbie questions. Add me to the list!!
* Automated wants to me on the list aswell :p
Dribbles
02-07-2003, 01:55 PM
Originally posted by jris
sorry for the double post...but here is my problem...ok i ran the sql folder and its now on the database so i then went to run the botloader.php and here is my error of doom!
Loading startup.xml
Warning: fopen("forums/alice/aiml/startup.xml", "r") - No such file or directory in /home/finalfan/public_html/forums/alice/src/admin/botloaderfuncs.php on line 508
could not open XML input
Help me please :(
Getting same exact error
amykhar
02-07-2003, 02:04 PM
You have not set your path correctly in the dbprefs file. Your path should be set to /home/finalfan/public_html/forums/alice/aiml/
Amy
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.