vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   TomBot v1.1 vB AI User Bot (https://vborg.vbsupport.ru/showthread.php?t=48053)

Webdork 02-21-2003 09:46 PM

For the original source of Program E including more AIML files - see http://www.rydell.com/programe/

Would be interesting to know what version this hack is based on.

Latest release of Program E was 0.08 which was released on August 23, 2002.

trilOByte 02-21-2003 10:06 PM

Yeah, Webdork, that's where I got the files above from. I followed the download links from rydell.com to sourceforge, which offered two sets of complete aiml files. It would seem that the aiml files in this hack, are a cut-down combination of those two sets.

Automated 02-22-2003 05:17 PM

Quote:

Originally posted by trilOByte
Here's the extra aiml files I mentioned. I've just added em in ADDITION to the original ALICE aiml files and re-ran botloader.php.

First impressions are that the bot seems smarter - or at least knows more.

I have absolutely no idea what these extra files do to the server load, or db size. But they do seem to work (I think).

I ran the botloader again and now the bot only replies in Smilies :( whats happened!

Matthew

Stu 02-22-2003 06:12 PM

Quote:

Originally posted by wolfman
I have a question that is only partually related to the bot.

My users use the "new posts" link alot and during a switch of styles I had to re add that to the board. Well since then I have added this bot and my post count has more than trippled. This means when they click on the "new posts" link they will be getting all these posts in this one forum I have the bot in. Which so far is only people having fun and does not really offer any real info.

Is there a way I could limit the search of new posts to everything but this one forum? if so what is the easiest way to do this. I just prefer simple over complex.

You can exclude forums from the search, this is from a hack request I submitted a while ago...

Code:

/forums/search.php

find

$wheresql.=" AND thread.open<>10";

and replace with this

$wheresql.=" AND thread.open<>10 AND thread.forumid!=50 AND thread.forumid!=63 AND thread.forumid!=71";

There are two instances that need to be changed.
50, 63, 71 are the forum ID's to be excluded, just change to your Forum ID's

trilOByte 02-22-2003 11:30 PM

Quote:

Originally posted by Automated


I ran the botloader again and now the bot only replies in Smilies :( whats happened!

Matthew

No idea, it worked for me. You did *add* these files to the original and not repace the originals with these?

Webdork 02-23-2003 02:38 AM

The version we have doesnt seem to be the same as the latest release of Program E which is 0.08 so I upgraded.

Seems a little smarter.

trilOByte 02-23-2003 04:19 AM

The interesting thing is if you use the java client included, the bot seems *much* smarter. It's the character length limitation which dumbs down the conversation.

The bot *seems* much smarter when the conversation is a quick succession of brief exchanges. It seems as though it follows the conversation.

I'm gonna run the bot as a popup java box, with custom aiml files for a FAQ.

REQUEST
What I would really like, is a way to stop the bot responding on the forums, unless it was triggered by a keyword (eg: "Alice"). The I could run the bot as a propper chatbot/FAQbot via the popup, but also have it as an "on demand" bot for the forums.

I think that would be the slickest way if integrating this hack.

TheComputerGuy 02-23-2003 01:07 PM

TriloByte, you have a great idea, I was looking at the chat.php and I am trying to figure out what exactly triggers it..because you have make it talk so many percentages...currently have mine set to 85% of the time...if I find anything I will let you know.

Erwin 02-23-2003 08:21 PM

Quote:

Originally posted by trilOByte
The interesting thing is if you use the java client included, the bot seems *much* smarter. It's the character length limitation which dumbs down the conversation.

The bot *seems* much smarter when the conversation is a quick succession of brief exchanges. It seems as though it follows the conversation.

Part of the problem is that in a chat, the conversation is linear.

In a forum, with multiple threads happening at once, the bot treats it all as one linear conversation, so it gets confused with names and topics, and comes across as dumb.

I suspect that if you restrict the bot to only 1 thread he may appear smarter.

cono 02-25-2003 06:42 AM

does anyone have a problem running two bots on there board?

i had one to start with, and it sounded pretty well and was making some decent sence. didnt sound to stupid. now i added the second useing the methed posted in this thread and the bot sounds a heck of a lot dumber. he doesnt make any sense?

maybe i shoulkd remove the second bot?

Automated 02-25-2003 07:57 AM

Please have a Look at this

This is a request for the development of this AI bot https://vborg.vbsupport.ru/showthrea...&postid=358151

Thanks
Matthew

Automated 02-26-2003 12:40 PM

Please :(

cono 02-26-2003 05:51 PM

its a good idea to try to improve this bot, but its bad to beg?

if people have intrest, they will help.

Rapid Gaming 02-27-2003 05:08 PM

HELP PLEASE!

I get this error:

Loading startup.xml

Warning: fopen(/alice/aiml/startup.xml) [function.fopen]: failed to create stream: No such file or directory in /home2/gamewiza/public_html/forums/alice/src/admin/botloaderfuncs.php on line 508
could not open XML input

Thanks!!

Jethro 03-01-2003 04:21 AM

Quote:

Originally posted by Tim Wheatley
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/foru...s=&forumid=310

You are one sick sad puppy asking if it was a poof :banana: :lol:

Going to try installing this to our test box now, and we're going to beat Tim at his own game .... a demented pyscho bot on the way (wonder how long it will take to work out the profanity filter isn't huge)!

Jethro 03-01-2003 06:07 AM

Ok anyone else tried installing this on a Win2k Pro system, all l'm getting back are smilies from the AI Bot :confused:

When l ran the botloader.php it told me 0 catagories created at the end of the load, wondering if something works slightly differently under windows.

Cheers

Okay just re-read the instructions and didn't run the sql statement (d'uh), where the heck do l run this on a win2k box

Automated 03-03-2003 09:00 AM

has all interest in this hack died :(

Talisman 03-03-2003 01:35 PM

No way, Matthew. I'm very interested..... just don't have the programming expertise to be any help with the sort of development we all need.

These hacks are awesome. We have two bots running in separate (private) test forums. For now, both bots are sharing the same data files..... but we'll make a new database for the second one after we're able to customize it/her/them well enough.

Ultimately, we want to have two conversational forum bots running (separately)....... along with a third FAQ-bot to personalize that function. So anything we can do to make it easier to train them is truly important.

Thanks to all who've been working on these hacks, so far!!

Talis.

Jethro 03-03-2003 11:31 PM

Quote:

Originally posted by Automated
has all interest in this hack died :(
Nope, and if l could get an answer to my question, would be happily posting away about it :)

Anyone ...

How do l run the sql file on a Win2k box ?

insanctus 03-04-2003 07:51 AM

Quote:

Originally posted by trilOByte


REQUEST
What I would really like, is a way to stop the bot responding on the forums, unless it was triggered by a keyword (eg: "Alice"). The I could run the bot as a propper chatbot/FAQbot via the popup, but also have it as an "on demand" bot for the forums.

I think that would be the slickest way if integrating this hack. [/B]
I am new to hacks and what not. But why not just add a if statement in the tomstalkerbot.php.

Something like.

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

take out the $ttb_forumid and replace it some how with a search in the $message string.

If this was visual basics i could do it in a minute but not sure on how to in php.

Just an idea..... Hope makes some sence.

insanctus 03-04-2003 08:11 AM

Ok I got mine to do it... that was to easy... I hope it helps.

In tomstalkerbot.php

Find
PHP Code:

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

and replace it with

PHP Code:

if ($ttb==AND rand(1,100)<=$ttb_weighting AND  stristr($message,"$ttb_username") AND $bbuserinfo[userid]!=$ttb_memberid) {gottb();}; 

Now it searched for its name in a post and reacts on it. Name can be any place in that post.

Such as "hello bot name how are you"

it will answer

If you still want it to only one thread. Then replace the above with .

PHP Code:

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


insanctus 03-04-2003 08:49 AM

Ok I am trying to work on it so it only looks at the beginning

PHP Code:

 // END CONFIG
$usernamelen strlen($ttb_username);
if (
$ttb==AND rand(1,100)<=$ttb_weighting AND  $ttb_username=substr($message0$usernamelen) AND $bbuserinfo[userid]!=$ttb_memberid) {gottb();};
$message=substr_replace($message""0$usernamelen); 

For some reason it is not working.

Like I said I am new to php but prior one works fine. Just this one does not seem to.

If you can figure it out please post it.

Automated 03-04-2003 08:56 AM

well thats a great addition, but it didnt work for me :( I am not sur if that is because i have the Multi forum version of tomstalkerbot.php but could you have a look at this please (here it is https://vborg.vbsupport.ru/showthrea...353#post345353 )

I would also release this as a stand alone hack it is amazing.

Matthew

Jethro 03-04-2003 02:24 PM

Okay trying to get this running live now, the infamous only posts smilies problem for us as well. Tracking through the problems encountered so far.

We get this when we try to run the botloader

Quote:

Loading startup.xml

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /home/virtual/site34/fst/var/www/html/forums/alice/src/admin/botloaderfuncs.php on line 563
Loading data aiml file: W1.aiml
Waiting on the loader to finish to see if anything is created :(

Jethro 03-04-2003 02:41 PM

Quote:

Originally posted by C.Birch
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

Aha knew that was our problem. Okay to sum up where we are at in both testing and live

1. Testing on win2k box, how the heck are we meant to run the sql file (has no one attempted this on win2k yet). Okay going to have a stab in the dark and try and run each command from the sql file manually.

2. Live database, Cannot set time in safe mode. Am presuming this is a setting we need to get our host to have a look at.

Well that's where we are at :dunno:

Jethro 03-04-2003 04:07 PM

All righty!!!!!!!!!!! Problem 1 fixed, AI running on our Win 2k test box :thumb:

For anyone else toiling with this sort of setup. Open the sql file in notepad, drop to a command window and go into your MySQL bin directory and get a MySQL session under way.

use databasename

Basically type in each of the commands from the MySQL manually :(

Probably a faster way, but what the heck it will get you up and running. You could also probably knock up a pretty quick php script to do it for you :)

See attached pic for our first conversation.

Automated 03-04-2003 04:20 PM

I am Working on a HUGE AIML addition to the bot, but having a bit of a problem with the PHP code, so if anyone would like to assist please PM me.

Thanks
Matthew

insanctus 03-06-2003 05:03 AM

Ok I am back . Lost my isp for about 48 hours.. Talk about losing ones mind .

Any how I plan to get back to work on my hack hack. Hopefully in next day I will be able to parse out the bot name when said in beginning of a post.

:)

Automated 03-06-2003 04:01 PM

Welcome Back!

Is anyone interested in helping me out? I have the PHP page but need someone who can tell me what is wrong with it. Please PM me.

Thanks
Matthew

insanctus 03-06-2003 04:12 PM

What page?

Automated 03-06-2003 04:31 PM

Have a look at this thread, to see what i am trying to do :D

http://www.sitepointforums.com/showt...threadid=98557

Matthew

Jethro 03-06-2003 05:24 PM

Would do but we can't even get ours running yet :(

Latest attempt break up the aiml files into smaller bites :dunno:

Automated 03-06-2003 05:46 PM

well if you can get this script to work i will share all the additional AIML with you guys and also Install your Bot for you Jethro!

Jethro 03-06-2003 05:54 PM

Latest attempt to load, take out the timer completely. Feck it, it's not working anyway :lol:

rjlohan 03-07-2003 05:39 AM

Seriously ++++ting me this install script. It keeps timing out on small .aiml files, but 'successfully' completing much, much larger ones. :wtf:

Have tried this with only 2 or 3 aiml fles, and I get the 0 categories installed error.

rjlohan 03-07-2003 05:48 AM

++++in tart! :mad:
Finally got the .aimls all to load and I got the 0 categories error... :rolleyes:

insanctus 03-07-2003 08:55 AM

I think I seen the answer to that at about page 15 or so..

Not to sure ya get lost after so many posts :)

Jethro 03-07-2003 06:10 PM

Quote:

Originally posted by rjlohan
++++in tart! :mad:
Finally got the .aimls all to load and I got the 0 categories error... :rolleyes:

Time to flag this one away mate, there's a couple of alternatives out there. Giving it one more go, and if it don't work deleting it and moving no to something else. Too much time and effort wasted on nil result for mine.

Cheers.

Jethro 03-07-2003 06:58 PM

Quote:

Originally posted by C.Birch


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

Missed this ... trying again :rambo:

Jethro 03-08-2003 02:36 AM

And Heidi is away and answering :banana:

http://www.galahtech.com/forums/foru...?s=&forumid=61

She's already decided she's gonna do something to one of our members, hope he isn't waiting patiently by the front door.


All times are GMT. The time now is 01:41 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02054 seconds
  • Memory Usage 1,849KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete