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)
-   -   Addon for: TomBot vBAI UserBot => Remember individual Users (https://vborg.vbsupport.ru/showthread.php?t=48568)

Radgam 02-04-2003 10:00 PM

Addon for: TomBot vBAI UserBot => Remember individual Users
 
This is an addon for the "TomBot vB AI User Bot" hack which can be found here: http://www.vbulletin.org/hacks/index...ack&hackid=900
This hack *must* be installed first.

This addon hack allows the vBAI UserBot to remember infomation on individual members of your forum from previous discussions such as their name, where they live, and anything else the Userbot may have asked about/picked up on :D !

The install file also contains information on sorting the output of the vAI UserBot and other little bits of miscellanous information! :classic:

If you have any problems, let me know.

~Radgam

Change Log----------------------------------------------------------

Version1.1:
a few code fixes
'CleanOutput' coding has been changed from 7 find & replaces to only 2. This has increased speed and means... less server load! Output looks near enough identical.

Martin64 02-05-2003 08:34 PM

Good job. :)

NuclioN 02-05-2003 08:53 PM

error: Warning: settype: invalid type

Erwin 02-05-2003 09:05 PM

Great work, Radgam. :) Seems to be working... but I've had to talk my bot off the public forums because he was just too dumb. :) And sucking up too much server load.

Kurayami 02-05-2003 11:01 PM

Great hack! *Whaps install*
(My users were rather irritated by the bot calling them all by just one name. :P)

amykhar 02-05-2003 11:11 PM

I am getting the settype warning as well.

Amy

Erwin 02-06-2003 12:43 AM

I don't get any warning here.

InSite 02-06-2003 04:10 AM

Didnt create any errors for me - I have installed this, and am trying to teach the robot my name ;)

DWZ 02-06-2003 05:42 AM

Can you put the install info in a txt file so unlicensed forum members can't view it?

Radgam 02-06-2003 07:35 AM

Good point :)
I'll change it in a minute

Radgam 02-06-2003 07:38 AM

Quote:

Originally posted by NuclioN
error: Warning: settype: invalid type
Not quite sure about the error but you could try replacing
settype($vbid, int); -- with
settype($vbid, "integer");

Let me know if it works :)
~Radgam

NuclioN 02-06-2003 07:57 AM

The error is gone now radgam :) How can we test it's capabillity to remember?

Radgam 02-06-2003 08:02 AM

Well, i tested it by creating a few different members which i could login as. Then if you say "My name is radgam. What do you know about me?" the bot prints out what it knows about you.

Repeat with a few different test members (and using different names each time you say it... finally, go back in as the original and again ask "what do you know about me?". And your name should still be remembered even though you've fed the bot information on other members too ;)

I know, tad complex ;)

NuclioN 02-06-2003 08:09 AM

Briljant! It display's an infosheet and if you follow the patterns the bot will notice that and by the next "what do you know about me?" it shows that it knows. ;)

NuclioN 02-06-2003 08:37 AM

I wonder where i can translate this part of the answers. We are creating a Dutch faq bot from scratch and the bot does not respond on "who am i" or other recognizable info. Where to look for this?

Neo 02-06-2003 08:39 AM

Sounds nice.

Automated 02-06-2003 08:44 AM

/me runs off to install

NuclioN 02-06-2003 08:47 AM

A couple of other questions because we have little time to find out ourself, does the bot knows when you ask it about another member? "What do you know about ****?"
And i've searcht trough the aiml files but i can't find the command that triggers the total display of what it already knows.

Radgam 02-06-2003 09:52 AM

Quote:

I wonder where i can translate this part of the answers. We are creating a Dutch faq bot from scratch and the bot does not respond on "who am i" or other recognizable info. Where to look for this?
To do this you need to create your own set of AIML files and then load them into the database using the botloader.php script (preferably a modifed version of the script, so it doesn't clear what is already in the database!) Alternatively, you can install Martin64s teachbot hack which can be found here:
https://vborg.vbsupport.ru/showthrea...threadid=48291

Quote:

A couple of other questions because we have little time to find out ourself, does the bot knows when you ask it about another member? "What do you know about ****?"
Unfortunatly you can't ask it about other members. That would probably involve modifying much of the code and AIML files as all of the references are done by the userid not the username, and the current coding is only designed to handle information on one person at a time (where userid=$uid or something like that).

~Radgam

NuclioN 02-06-2003 10:11 AM

I hope if someone can let the bot remember other members info, that would be a major improvement. :)

The translation and teach stuff are already set in the db and botfiles, i actually want to know what command triggers this:

Name: .
Age: .
Birthday: .
Gender: .
Job: .
Sign: .
Location: .
Does: .
You are: .
You have: .
You want: .
You like: .
You said: .
Personality: .
Favorite color: .
Favorite movie: .
Password: .
Email: .
Phone: .
Cat: .
Dog: .
Wife: .
Husband: .
Friend: .
Boyfriend: .
Girlfriend: .
Brother: .
Sister: .
Father: .
Mother: .
Nickname: .
Full name: .
Last name: .
Middle name:

Radgam 02-06-2003 10:25 AM

If you look in the AIML files (for ALICEBot) search for
<pattern>CLIENT PROPERTIES</pattern> in C.aiml and you should see the following:

<template>Name: <get name="name"/>.<br/>
Age: <get name="age"/>.<br/>
Birthday: <get name="birthday"/>.... etc

The 3 other phrases that print this list are:
- WHAT DO YOU KNOW ABOUT ME
- CLIENT PARAMETERS
- CLIENT PREDICATES

Hope this helps
~Radgam

NuclioN 02-06-2003 10:29 AM

Tnx Radgam, now i can get to work :)

Radgam 02-06-2003 03:43 PM

Glad it helped :) Just like to mention, i updated the install file to v1.1 after re-writing the "CleanOutput" coding and sorting a few bits of coding (which, unless you've had a problem, aren't worth bothering about).

I don't think it's worth sending an update for it, but if anyone has the additonal CleanOutput coding in their file, they should definatly read the update. The number of 'search & replaces' have been cut from 7 to 2 with near enough the same results. Much faster :)

amykhar 02-06-2003 06:55 PM

Any time the bot is asked somebody's name, it appends "seeker" to the name. Does anybody know how to make it stop doing that?

Radgam 02-06-2003 06:59 PM

it's the way the AIML files are written. you'll need to change the AIML files and reload them into the database to sort it.

Mickie D 02-06-2003 09:46 PM

so i should re-load the aiml files into the directory ?? for him to stop calling everyone there name with seeker on it ???

Radgam 02-07-2003 09:05 AM

Well, you'll need to modify them first
-----
In the ALICE AIML files:

In M.aiml find:
<pattern>MY NAME IS WHAT</pattern>
take out the work seeker in between the <template></template> tag :)

in W.aiml find:
<pattern>WHO AM I</pattern>

do the same as above.

Hope this helps.

NuclioN 02-07-2003 09:40 AM

What would be helpfull is a list of the dialog tags that are involved to let the bot remember. A list with the set tags and the get tags that are needed to make a custom aiml file with all the favcolor and gender etc. so you can learn the bot the details in new dialogconstructions. Also it would be a lot easier to translate these files. ;)

amykhar 02-07-2003 01:57 PM

when reloading the bot, do I need to clear any tables or anything first? If so, which ones?

NuclioN 02-07-2003 02:30 PM

You can open the sql file to find out wich tables it needs to function and then remove them with phpmyadmin..after that load the sql again and you can begin from scratch.

Radgam 02-07-2003 02:56 PM

the botloader script should automatically clear the databases before loading in the new AIML files

amykhar 02-07-2003 02:58 PM

Thank you guys :)

Reloading now. My members have fallen in love with this silly thing. He has his own forum where he holds court.

Amy

Radgam 02-07-2003 03:02 PM

Same with mine. it's the second biggest forum now :o

Jitway 02-10-2003 03:03 AM

Really works clicks install. :banana:

kmfdm_kid2000 02-11-2003 04:13 AM

Good Idea

/me installs

Link14716 03-19-2003 01:47 AM

[high]* Link14716 installs. :)
[/high]

Thanks.

Jethro 03-19-2003 04:42 AM

Quote:

02-08-03 at 02:02 AM Radgam said this in Post #33
Same with mine. it's the second biggest forum now :o

Know exactly what you mean, unfort am getting slightly irritated by having to explain what AI and Expert Systems mean to the members. Aren't they teaching this stuff at college anymore :dunno:

Okie dokie going to install this one tonight, was one of the things l started looking at doing :banana:

Not that l like the AI bot or anything but we are actually changing one of our sites over to a total AI project :) Figure if we can get the team who actually have expierance with Expert Systems firing on this, we should rock hard.

* Had two years working on an AI for one of the departments downunder (prolog not php)....

Automated 03-19-2003 07:30 AM

I have started a 100% AI site/project http://Monkeychat.com/forums . I a working on a huge AIML set at the moment it is about 60 Megs, just needs some tweeking and also i need to find someone that knows a lot of the AIML markup and PHP as i have a few ideas ;)

Matthew

BrAinZ 06-01-2003 09:50 PM

Do you still need this for TomBot 1.2 ??

Radgam 06-02-2003 08:14 AM

TomBot1.2 actually has this addon, well, added in so you don't need to install it :)


All times are GMT. The time now is 04:51 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.01993 seconds
  • Memory Usage 1,808KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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