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 01-28-2003 10:00 PM

vBTeachbot 2.1
 
vBTeachbot 2.1
(by Martin64, martin64@vbhackers.com)

[about]

This hack requires Tombot: (https://vborg.vbsupport.ru/showthrea...threadid=48053).

Want to teach your Tombot? vBTeachbot adds an option in your Admin CP that will let you teach the bot directly - it will instantly be able to answer your questions.

[screenshots]

https://vborg.vbsupport.ru/attachmen...&postid=347904
https://vborg.vbsupport.ru/attachmen...&postid=352490
https://vborg.vbsupport.ru/attachmen...&postid=352491

Martin64 01-29-2003 06:11 PM

Teaching the bot (screenshot 1)

N9ne 01-29-2003 06:18 PM

So after the mods submit the questions/answers in the ModCP, what happens next? Do admins get some notification?

Martin64 01-29-2003 06:35 PM

Ugh, if you have downloaded the file already, please download it again, I had little permission error in teachbot.php earlier. :)

N9ne: No notification, but you'll see how many questions that have been added through the Mod CP.

Automated 01-29-2003 07:01 PM

thanks a lot man :p

[high]* Automated clicks install[/high]

Crinos 01-29-2003 07:07 PM

Cool beans ... I'll try this one tonight :D

Martin64 01-29-2003 07:11 PM

Thanks. :)

I'll re-write the teachbot.php file tonight (or tomorrow), it's not really that well-written. :p

Automated 01-29-2003 07:24 PM

First Prob!

When you go to add to the DB usng the forum you have to add 5 at a time and this is not very good :( Can you mod it so that you only have to add 1 at a time but still leave 5 spaces there.

Thanks
Matthew

Martin64 01-29-2003 07:27 PM

Yup, that was one of the things I was going to correct, I'll post a new teachbot.php file in a minute. :)

Martin64 01-29-2003 07:33 PM

I've updated the zip file, just upload the new teachbot.php file if you have installed this already.

This fixes the problem of mods having to submit 5 questions and answers at a time, and also fixes the apostrophes problem.

Automated 01-29-2003 07:34 PM

Thanks Mate!

Also how do i go about getting the info out of the table in the DB? I dont know MYsql :( Do i run a query or something.

Thanks :p

Matthew

Automated 01-29-2003 07:36 PM

Once more thing (please tell me if i am annoying you) Would it be possiable to add a new page which would allow users to submit their entries to the bot but first they would need to be approved by Mods and then entered into the DB becuase that would make the bot learn a lot quicker if normal members could contribute!

Thanks
Matthew

N9ne 01-29-2003 07:36 PM

So basically the mods can add directly into the database?

Maybe you could make it so they can submit questions, and in the ACP admins can read through and approve whichever ones they think should be approved, and the rest can be discarded?

Martin64 01-29-2003 07:46 PM

Quote:

Originally posted by Automated
Once more thing (please tell me if i am annoying you) Would it be possiable to add a new page which would allow users to submit their entries to the bot but first they would need to be approved by Mods and then entered into the DB becuase that would make the bot learn a lot quicker if normal members could contribute!

Thanks
Matthew

I suppose so, but that's too large of a project for me, I intended on doing a small release. :)

Maybe someone else can do that.

[QUOTE]Originally posted by N9ne
Quote:


So basically the mods can add directly into the database?

Maybe you could make it so they can submit questions, and in the ACP admins can read through and approve whichever ones they think should be approved, and the rest can be discarded?

Yes, I'm working on something along those lines, but won't promise or release anything yet. This will have to do for now, sorry. I don't have much time at the moment. :(

Automated 01-29-2003 07:54 PM

OK Martin. I think my last post sounded a little un grateful :( I really do appretiate this hack.

Thanks a lot, maybe some of the other hacks could setp in and lend a hand ;)

Matthew

Martin64 01-29-2003 09:49 PM

Automated: Don't worry about it, I wasn't offended :p

I have updated the zip file with a new teachbot.php and new instructions.

The new release allows you to view the AIML directly from the Mod CP, and you can also empty the teachbot table from there.

:)

EDIT: If you're upgrading, just upload the teachbot.php file and re-do the changes to mod/index.php

:bunny:

Link14716 01-29-2003 10:34 PM

What about adding the ability for an admin to just insert all of the data directly into the database without going through the trouble of adding it to the custom AIML file and running botloader.php?

NuclioN 01-29-2003 10:40 PM

db error when a moderator clicks on the teach bot link in mod cp:

Invalid SQL: SELECT * FROM moderator WHERE userid=xx
mysql error: You have an error in your SQL syntax near ')' at line 1

maddenman 01-29-2003 11:26 PM

Same thing as Nuclion, I installed it this evening and my mods cannot access it. I can, but the moderators cannot.

Erwin 01-30-2003 02:21 AM

Looking forward to installing this after work. Good work, Martin! :)

Automated 01-30-2003 09:01 AM

Quote:

Originally posted by NuclioN
db error when a moderator clicks on the teach bot link in mod cp:

Invalid SQL: SELECT * FROM moderator WHERE userid=xx
mysql error: You have an error in your SQL syntax near ')' at line 1

has it been sorted out now?

I would like to install this also :D

Matthew

kmfdm_kid2000 01-30-2003 10:01 AM

Can this be made Admin Only, or at least limited to Super Mods?? That shouldn't be a hard request...https://vborg.vbsupport.ru/

Martin64 01-30-2003 12:10 PM

Quote:

Originally posted by Link14716
What about adding the ability for an admin to just insert all of the data directly into the database without going through the trouble of adding it to the custom AIML file and running botloader.php?
Before I started working on this hack, I sat a whole day trying to teach the bot directly by inserting patterns, templates and whatnot to the database, but after that I came to the conclusion that the bot must be reloaded with the botloader or it won't understand the questions. Perhaps I missed something :)

I've fixed the permission problems and will post a new version right after I hit submit reply here. :)

Martin64 01-30-2003 12:12 PM

New version released.

This new version add the options to the Admin CP as well. In the Admin CP, you have these options:

Teach bot
View AIML
Drop AIML

In the Mod CP, you have these options:

Teach bot
View AIML

Mickie D 01-30-2003 12:22 PM

martin i so much appreciate the work done by you guys this bot brings a whole new level of fun, by you and the original auther !!

but is there anyway he can see peoples names and remember talking to them ???

ie he thinks everyone is the same person asking him a question :(

i.e
he knows that Mickie D created him (me lol)
but he does not know its me when i post to him :(

if not i understand how complex it is but just a thought, it would make alot more sense if he did, i can see he was made for a chat site... so i am thinking he must have routines to know on a chat site who people are :)

NuclioN 01-30-2003 01:07 PM

The new version installed and when a moderator adds 5 questions it repeats the first one 5 times with the answers, writing the output over the other questions and answers it seems.

Also i test 1 question with the new botloader and custom.aiml. This add's 1 categorie alright but...when i repeat that question, the bot does not come with the answer from the custom aiml.

NuclioN 01-30-2003 01:40 PM

And it would be great to put the random tag into it to make questions with multiple answers. ;)

Neo 01-30-2003 03:25 PM

The joys of XML.

Dean C 01-30-2003 05:59 PM

Sounds very nice Martin :)

- miSt

Martin64 01-30-2003 07:02 PM

Ugh, I can't stop screwing up, can I? :)

I'll fix that and post a new zip asap.

Martin64 01-30-2003 07:08 PM

New version posted, I decided to call it vBTeachbot 1.1 to avoid confusion, I'll slap a new version number on each new release from now on.

If you have previously installed this, just upload the teachbot.php files to their respective directories. Now it works, I promise :p

Martin64 01-31-2003 12:56 AM

I have some very good news. I figured out how to teach the bot by directly inserting to the database! Hopefully I'll be able to release it tomorrow, I need to re-write the script first though. :)

NuclioN 01-31-2003 05:24 AM

Good news Martin, awesome.

Automated 01-31-2003 12:59 PM

Quote:

Originally posted by Martin64
I have some very good news. I figured out how to teach the bot by directly inserting to the database! Hopefully I'll be able to release it tomorrow, I need to re-write the script first though. :)
OMG Martin "You da Man"

[high]* Automated anxiously waits for release![/high]

jbear6 01-31-2003 01:33 PM

Quote:

Originally posted by Automated


OMG Martin "You da Man"

Ditto that!

Martin64 01-31-2003 04:38 PM

Took down the release for now, I'm going to put up the new version in a few minutes. :)

N9ne 01-31-2003 04:49 PM

Do you have a changelog?

Martin64 01-31-2003 05:04 PM

vBTeachbot 2.0 released!

CHANGELOG:

You are now able to directly inserting questions to the bot and it will instantly be able to reply to that question. You can add up to 7 word questions, but I recommend sticking to short ones, as it won't always reply to long ones.

INFO:

No matter if you have previously installed this hack, I recommend running these queries:

TRUNCATE TABLE conversationlog
TRUNCATE TABLE dmcache
TRUNCATE TABLE gossip
TRUNCATE TABLE thatindex
TRUNCATE TABLE thatstack

If you're upgrading, read the instructions, it's easy. :)

Enjoy. :D

Chris M 01-31-2003 05:21 PM

Hmmm...

Intruiging idea;)

Perhaps I could help you with the Members adding questions and them being moderated bit;)

If you want to know how, PM me:) I'm willing to show you:)

Satan

Tim Wheatley 01-31-2003 05:30 PM

Code:

Database error in vBulletin Control Panel 2.2.9:

Invalid SQL: INSERT INTO patterns (bot, word, ordera, parent, isend) VALUES ('0','WHAT','2','1','0')
mysql error: Unknown column 'bot' in 'field list'

mysql error number: 1054

Date: Friday 31st of January 2003 08:16:12 PM
Script: http://forum.racesimcentral.com/admin/teachbot.php
Referer: http://forum.racesimcentral.com/admi...=teachbot5word

???

That field is definitely there!


All times are GMT. The time now is 02:09 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.01318 seconds
  • Memory Usage 1,818KB
  • 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
  • (6)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
  • (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