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)

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

Quote:

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

Quote:

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. :)

corn 02-02-2003 03:25 PM

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. ;)

corn 02-02-2003 03:39 PM

tnx man :)

corn 02-02-2003 03:42 PM

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?

corn 02-02-2003 03:55 PM

Quote:

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 ?

corn 02-02-2003 05:17 PM

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?

corn 02-02-2003 07:08 PM

when I post a message on my board, my bot wil respond:
Code:


       
Quote:

       
       
               
       
       

                       

                       
                                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

Quote:

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

Quote:

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

Quote:

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

Quote:

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
PHP Code:

$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.


All times are GMT. The time now is 06:43 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.01831 seconds
  • Memory Usage 1,848KB
  • 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
  • (1)bbcode_php_printable
  • (8)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