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)
-   -   vBTeachbot 2.1 (https://vborg.vbsupport.ru/showthread.php?t=48291)

Martin64 02-06-2003 03:08 PM

You might want to read this:

https://vborg.vbsupport.ru/showthrea...085#post351085

:)

forby 02-08-2003 02:04 AM

great hack ,but is this only working with the use of the vb DB ,or can i use this with a different DB like the one where the bot is running what is not the same like the vb DB and if ,how ?

Martin64 02-10-2003 12:26 AM

Teaching the bot (screenshot 2)

Martin64 02-10-2003 12:27 AM

Teaching the bot (screenshot 3)

Martin64 02-10-2003 12:32 AM

Version 2.1 released:

I scrapped the "directly inserting to database idea", it didn't work properly (pattern interfearing), so I dediced to go back to the AIML writing idea.

This new version lets you write AIML directly from your Admin CP, that you easily add to your current custom.aiml file. The good news is that you know exactly what you've taught the bot, and also, in case you need to empty the pattern/templates tables, you have an aiml file you can easily reload.

Download the zip file for more information.

trilOByte 02-18-2003 08:49 AM

Martin, sorry if this has been asked before and I've missed it, but does this hack support wildcards?

I mean if you input a statement like...

"I love classical music, there is just nothing to compare with it"

and you want the bot to pick up on this and answer something like...

"well, if you got your classical head out your but and listened to something else..."

You would be dependant on the poster entering the exact syntax in order to prompt a response. If you could specify wildcards, like "#" to mean anything, then input...

"# love # classical misic #"

Then the bot would be triggered by those three words and any combination of other words in place of the "#".

Does this make sense?

StarBuG 02-19-2003 10:59 PM

Maybe another way to teach the bot "directly" would be not to write the questions into the output.txt instead you should directly write it into "custom.aiml"

If you do it that way people don?t have to edit custom.aiml manualy and it would make it much more "professional" :D

What do you think!?

StarBuG

Martin64 02-20-2003 12:19 AM

trilOByte: This hack works just like you would write the AIML by hand, only, this makes it easier and faster, and also, you can get your moderators to help you. :)

The only thing that limits how you're able to teach the bot is how AIML works, and I can't say I'm an expert at that. I recommend you have a look at the following pages to learn more:

http://www.alicebot.org/documentatio...reference.html
http://www.alicebot.org/documentation/aiml-primer.html

StarBuG: Yeah, that would be great if it could be done, but we're using fopen to add extra XML at the end of the file every time we enter a new question, and an AIML file requires this tag at the end of it:

</aiml>

I don't know how we could add extra XML to an AIML file and still keep the closing </aiml> tag...

StarBuG 02-20-2003 10:26 AM

Im no coder myself but could it be done this way:

1) delete the </aiml> tag in the aiml file
2) enter the new questions with the new </aiml> tag at the end?

That should be possible I think!

Greetings

Star

trilOByte 02-21-2003 10:48 AM

Quote:

Originally posted by Martin64
trilOByte: This hack works just like you would write the AIML by hand, only, this makes it easier and faster, and also, you can get your moderators to help you. :)

The only thing that limits how you're able to teach the bot is how AIML works, and I can't say I'm an expert at that. I recommend you have a look at the following pages to learn more:

Yeah, gettin it now, thanks. Little slow on the uptake over here. ;) :D

I have found something interesting about the aiml file set though.

See here

Martin64 02-21-2003 07:36 PM

Quote:

Originally posted by trilOByte

I have found something interesting about the aiml file set though.

See here

Interesting, I might try it with my bot. :)

trilOByte 02-21-2003 08:24 PM

Be very interested to hear what you think - It would seem that those extra files make the bot more knowledgeable, but not particularly smarter - if that makes sense. :)

sparky2 02-26-2003 01:26 AM

Can a "question" have multiple answers?

In other words, if you enter a question twice, with a different answer each time, are there 2 possible answers (chosen later at random) or will the second of the two answers entered overwrite the first?

(When I looked at the AIML files, it seemed like some of the trigger phrases had multiple available/matching responses)

Martin64 02-26-2003 01:46 AM

Quote:

Originally posted by sparky2
Can a "question" have multiple answers?

In other words, if you enter a question twice, with a different answer each time, are there 2 possible answers (chosen later at random) or will the second of the two answers entered overwrite the first?


(When I looked at the AIML files, it seemed like some of the trigger phrases had multiple available/matching responses)

Yeah, you could use random answers for a question, like this:

Question box: Who is Martin64
Answer box: <random><li>He is my creator.</li><li>He is a vbulletin.org hacker</li></random>

trilOByte 02-26-2003 01:47 AM

You can define multiple answers by using <li>**</li> tags and then listing all the different answes. The bot will randomly select one. Dont write out the same question over and over as the bot will either just pick up the first, or fall over alltogether.

If you want to get it to work well, then spend a little time working out how aiml works. Defining atomic subjects and <srai> tags.

trilOByte 02-26-2003 01:47 AM

snap

trilOByte 02-26-2003 01:57 AM

Read this for an outline of how to write some basic aiml.

gengar003 05-06-2003 10:58 PM

will it only answer questions EXACTLY like the ones you enter, or will it respond to similar ones.

Intex 05-18-2003 11:47 AM

Martin64 - I've installed this and everything appears to be in order, but the bot doesn't seem to recognise the new commands I've entered. I've run the botload file and it says it inserted 1 new category. Any ideas?

I'd like to incorporate simple commands like:

!help
!commands

etc.

I added these as questions as they appear above, i.e. !help as the question. Isn't this possible?

zajako 05-19-2003 01:07 AM

gah, i thought it was updated to automaticaly add the things you add into the bot's mind... Ill have to make this hack better for you guys, so that it makes it when you hit submit it instantly learns it.

gmarik 06-09-2003 11:56 AM

Does it works ok on 2.3?

snakes1100 06-25-2003 12:51 AM

Help
I'm not a newbie to hacking a forum & php coding by any means, followed all instructions and have tried all other types ofthings to fix this issue with the teachbot form in the admin, i thought the form was wrong, but even created a new form and a no go, chmod'd everything, i have tried it all.

Has anybody gotten this, everytime i submit the Q & A i getthis?

"Please fill out both the question and the answer!"

TIA
snakes1100

Gutspiller 07-18-2003 07:21 PM

Can you recheck your instructions file? It says

"2. Upload the contents of the admin folder in this zip file to your admin directory. CHMOD admin/teachbot/output.txt in this zip file to 777.
3. Add your questions and answers through your Admin CP; click "Add a question" below "Teach the bot a question". Add your question and answer and click submit."

Where's the lines that say how the stuff got into the admin cp that you are talking about? In the instructions it doesn't mention creating any "Add a question" button or anything. How are we suppose to click them if we haven't created them?

Please help.

Martin64 07-18-2003 07:51 PM

Sorry about not keeping you updated on this hack, since vB3 Beta was released I don't offer support for my hacks anymore.

gengar003: You can use * and different patterns, I'm no expert at this. Look at the link trilOByte posted.

Intex: Not sure if it works with !triggers. Appearantly not.

zajako: Good luck, you need it. Trust me, I've tried and it's not as easy as it seems. :)

gmarik: Yes it does.

snakes1100: hmm....well did you fill out both the question and the answer?

Gutspiller: First do all the file changes, then continue with step 2. Step one says: "Do the file changes below and also, create the new aiml file."

Gutspiller 07-19-2003 08:35 AM

If I want to add more aiml files I find around the net do I simply place them in the alice/aiml folder and run alice/src/admin/botload.php and let it run through the new aiml files? Is that all it takes? If there is anything else involved? What if two different aiml files are trying to answer the same question with different responses? Do they get added together?

Like if one aiml file says to answer a "Hello" with a "Hi. How are you doing?"

but the other aiml file wants to just say "hello" back. Will the system automatically put both lines in so that it will then use one or the other when somebody says "Hello"?

Gutspiller 07-19-2003 09:01 AM

Also... How come I can't add more than 1 question at a time? After I added one question it showed the correct output, but now when I try to add my 2nd question/answer it wont show it. Tell me this is a bug? I'm not uploading an aiml file everytime I want to add a single new question. :disappointed:

Intex 07-19-2003 02:42 PM

Martin64 - Thanks for the reply. But wasn't it you that done the FAQBot that was specifically written to repond to triggers?


Quote:

Yesterday at 10:51 PM Martin64 said this in Post #104
Sorry about not keeping you updated on this hack, since vB3 Beta was released I don't offer support for my hacks anymore.

gengar003: You can use * and different patterns, I'm no expert at this. Look at the link trilOByte posted.

Intex: Not sure if it works with !triggers. Appearantly not.

zajako: Good luck, you need it. Trust me, I've tried and it's not as easy as it seems. :)

gmarik: Yes it does.

snakes1100: hmm....well did you fill out both the question and the answer?

Gutspiller: First do all the file changes, then continue with step 2. Step one says: "Do the file changes below and also, create the new aiml file."


snakes1100 07-28-2003 01:39 PM

Martin
I did fill out both the Q & A of the form and stated it in my post, what do you suggest for this issue?

Previous post is on page 7 if you need a refresher to my Q.



Quote:

07-18-03 at 05:51 PM Martin64 said this in Post #104
Sorry about not keeping you updated on this hack, since vB3 Beta was released I don't offer support for my hacks anymore.

gengar003: You can use * and different patterns, I'm no expert at this. Look at the link trilOByte posted.

Intex: Not sure if it works with !triggers. Appearantly not.

zajako: Good luck, you need it. Trust me, I've tried and it's not as easy as it seems. :)

gmarik: Yes it does.

snakes1100: hmm....well did you fill out both the question and the answer?

Gutspiller: First do all the file changes, then continue with step 2. Step one says: "Do the file changes below and also, create the new aiml file."


PixelFx 10-14-2003 02:41 AM

Please Let me know if you do any more work on this, I'm working on a new project in aiml :) or learning to code it better.


All times are GMT. The time now is 11:40 PM.

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.02426 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)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