vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   TalkerBot Add-on - Learning System (https://vborg.vbsupport.ru/showthread.php?t=60429)

94DROPTOPZ 10-22-2004 10:50 AM

Has anybody else gotten this to work out for them with success?

94DROPTOPZ 10-25-2004 03:24 PM

We have gotten this to work on my forums & is a great add-on!

Clicks install.

Although I am wondering if there is a way to put in "key words" such as dogs, cats, birds,fish, gerbils
And if somebody says any of the key words in a sentence "Do you like dogs?" Then it will come back with the responce that I programmed in??

peterska2 10-27-2004 06:51 PM

Does it work with 3.0.3?

Are there any special instructions I need to be looking out for or things that I need to watch?

I don't have a bot on my localhost and don't want to risk killing my live one by trying it if the chance of success is low.

TTG 11-16-2004 09:11 AM

Sounds like a great addition but every time I run the botlearner script :-

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.220095
Templates per second=0
Templates per minute=0

TTG 11-17-2004 10:01 PM

Ok .. got the bot learning, but not transferring. Guess I can live with that and just delete the messages after running the botlearner script.

Solved it .. bot now learns and moves learned items into Botlearned category after running botlearner script.https://vborg.vbsupport.ru/external/2004/11/5.gif

bigtime 02-26-2005 06:06 PM

I've got it working with VB 3.06. Just follow the instructions carefully and it will work! Here's my site if anyone wants to take a look.

Link for the talkerbot:
http://defend.net/deluxeforums/forumdisplay.php?f=42

Here is the link to my learning forum:
http://defend.net/deluxeforums/forumdisplay.php?f=46

username - testing
password - test

Tim

kylek 04-24-2005 03:58 AM

"threadid numbers of both threads and the postid number "

Okay I know how to get the threadid but how does one find the postid number? Sorry for the newbie question.

kylek 04-27-2005 11:37 PM

Loading learnwhat.xml
Loading data aiml file: http://www.xxxxxxxxxxxxxxxxxx/forum/....php?type=AIML
XML error: mismatched tag at line 2

When I run botlearner I now get this, what do I need to look for?

laeth 05-05-2005 06:16 AM

Quote:

Originally Posted by kylek
Loading learnwhat.xml
Loading data aiml file: http://www.xxxxxxxxxxxxxxxxxx/forum/....php?type=AIML
XML error: mismatched tag at line 2

When I run botlearner I now get this, what do I need to look for?

Also getting this error.

kylek 05-13-2005 11:45 PM

Quote:

Originally Posted by laeth
Also getting this error.

Just wondering if you figured out the tag problems Laeth, still can't get mine working.

jilly 05-14-2005 07:10 PM

I have this add on installed, and I post questions and answers on the learning thread, I run botlearner.php, and it runs and inserts the data in, but when I go back and ask the bot, it did not learn what it was supposed to. I tried using the snausages example verbatim, and it didnt work, and I tried a few other made up words that wouldnt already be in the database, and those didnt go in either.

Any ideas?

jilly 05-19-2005 07:13 PM

I'm thinking my problem may be that I havent put the two code segments in the correct place in the 'if/else chain' - could you please re-do the instructions, and pick a specific place to put the code, this will be easier for those of us who aren't exactly sure where to put it.,.(i.e. us non-programmers)

kylek 06-06-2005 02:47 AM

Quote:

Originally Posted by kylek
Loading learnwhat.xml
Loading data aiml file: http://www.xxxxxxxxxxxxxxxxxx/forum/....php?type=AIML
XML error: mismatched tag at line 2

When I run botlearner I now get this, what do I need to look for?

Still getting this same error, reinstalled 2 times, and error pops up when I run botlearner.

Loading learnwhat.xml
Loading data aiml file: http://xxxxxx.xxx/forum/external.php?type=AIML
XML error: mismatched tag at line 2

Ambie 06-08-2005 11:32 PM

The information is going in to the database, but nothing is moving to the learned thread. Nor is he learning any of it. :disappointed: Does anyone know what could be wrong?

unixdotcom 10-28-2005 05:58 AM

This was an easy hack to install, I got it to work, but there are potential problems:
  • The external.php URL in the botlearner.php routine has the potential to wipe out existing AIML files - a lobotomy!
  • The AIML transformation is too simple.... too basic.

Nice shell, but needs a lot of work. We can't use it in "production" at UNIX.COM..... YET!

Great idea..... needs work! Thanks so much!

Neo

GuaRRand 10-28-2005 06:32 AM

Is there anything like this for 3.5 ?

bigtime 09-18-2006 03:26 PM

Is this going to be available for 3.6.1?

eXtremeTim 09-21-2006 10:11 AM

Creating a more advanced shared learning database for the current 2.2.2 version of talkerbot. I decided having a non centralized version was really limiting the power of teaching the bot things when I can create a system on my site for users to contribute data for the bot to learn in different categories.

RvG2 09-02-2008 02:23 PM

Tim... i hope you can update this to 3.7 :)

my bot is so useful in my forum... i need to make the bot learner to work.

gpc10347 09-13-2008 05:43 PM

For those about to rock, this can be made to work in 3.7.3.whatever I have!

I tried and tried to make the modifications as shown for external.php work out and finally drank myself to sleep. This morning, I discovered it working and here's what I had done.

Rather than create the two cases mentioned, I created a single case and nested it as you see below (between a case xml and a case rss) - I didn't use the SHARE option as it doesn't appear any of the sites are still doing that.

Working well for me though.. it's learning what the other aiml files didn't already answer and it's awesome.

PHP Code:

case 'XML':
        if (!$vbulletin->options['externalxml'])
        {
            exit;
        }
        break;
// HERE'S THE BEGININNG MY MODIFICATION
    case 'AIML':
{ // XML/AIML output

    $posts = $db->query_read("
    SELECT post.title, post.pagetext, post.postid 
    FROM post
    WHERE post.threadid=**TEACH THREAD** AND post.postid!=**FIRST POST ID**");

    $postcache = array();
    while ($post = $db->fetch_array($posts))
    { // fetch the posts
    $postcache[] = $post;
    }

    // set XML type and nocache headers
    header('Content-Type: text/xml');
    header('Expires: ' . gmdate('D, d M Y H:i:s') . ' GMT');
    header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
    header('Pragma: public');

    // print out the page header
    echo '<?xml version="1.0" encoding="' . $stylevar['charset'] . '"?>' . "\r\n";
    echo '<aiml version="1.0">';
    
    
    foreach ($postcache AS $post)
    {
        echo "<category>";
        echo "<pattern>";
        echo strtoupper($post[title]);
        echo "</pattern>\r\n";
        echo "<template>   \r\n";
        echo $post[pagetext]."   \r\n";
        echo "</template>   \r\n";
        echo "</category>   \r\n";
    $db->query_write("UPDATE post SET threadid=**LEARNED THREAD** WHERE postid=".$post[postid]);
    }
    echo "\r\n</aiml>";
}
// HERE'S THE END OF MY MODIFICATION
    case 'RSS':
        $vbulletin->GPC['nohtml'] = 0;
    case 'RSS1':
    case 'RSS2':

Hope this helps someone else out!

space? 09-13-2008 07:09 PM

nice one ;)


All times are GMT. The time now is 03:17 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.01250 seconds
  • Memory Usage 1,769KB
  • 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_php_printable
  • (3)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
  • (21)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