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)

C.Birch 01-26-2003 08:43 AM

Quote:

Originally posted by Ember
We're trying to teach the bot croatian, do we just tell him the english then the croation, or what?
to do things like that i think you need to make new aiml file but im not to sure, but theres a file with the alice softwear that says the following:

PHP Code:

<?

/*
    Program E
    Copyright 2002, Paul Rydell
    
    This file is part of Program E.
    
    Program E is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    Program E is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Program E; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/


/*

INSTRUCTIONS

If you want to put custom tags into your templates you need to define functions to handle those tags in this file.

Define the function with the name ct_customtagname. Setup the function to be passed the parameters $xmlnode, $inputstar, $thatstar, and $topicstar.

After the function has been defined it will automatically be called to handle XML that matches your custom tag name.

Please review the examples below.

*/


/*
Example:
You want to build email capabilities into the bot and have invented an <email> tag.
Example of how your new email tag will be used:
    <category>
      <pattern>EMAIL PAUL AND TELL HIM *</pattern>
      <template>Okay. I emailed him. <email to="paul@rydell.com"><star/></email></template>
    </category>
*/

/*
function ct_email($xmlnode,$inputstar,$thatstar,$topicstar){
    
    # Capitalize the attributes
    $mynode=upperkeysarray($xmlnode["attributes"]);

    # Get the value of an attribute
    $sendto=$mynode["TO"];
    
    # Process everything inside the tag
    $emailcontent=recursechildren(realchild($xmlnode),$inputstar,$thatstar,$topicstar);

    # Send an email
    mail($sendto, "E-Mail from Program E", $emailcontent);

    # Don't return anything to the output
    return "";

}
*/

/*
Example:
You want to build math capabilities into the bot and have invented an <add> tag.
Example of how your new add tag will be used:
    <category>
      <pattern>PLEASE ADD * TO *</pattern>
      <template>The answer is <add><star index="1"/>,<star index="2"/></add></template>
    </category>
*/

/*
function ct_add($xmlnode,$inputstar,$thatstar,$topicstar){
    
    $total=0;

    # Process everything inside the tag
    $numberstoadd=recursechildren(realchild($xmlnode),$inputstar,$thatstar,$topicstar);

    # Split the numbers into an array
    $numberstoadd=split(",",$numberstoadd);

    # Total up the numbers
    foreach($numberstoadd as $x)
        $total += $x;

    # Return the answer
    return $total;

}
*/

?>


C.Birch 01-26-2003 08:48 AM

Quote:

Originally posted by ManagerJosh
Loading startup.xml

Warning: Cannot set time limit in safe mode in /home/virtual/site28/fst/var/www/html/ai/src/admin/botloaderfuncs.php on line 563
Loading data aiml file: 1.aiml

Warning: Cannot set time limit in safe mode in /home/virtual/site28/fst/var/www/html/ai/src/admin/botloaderfuncs.php on line 563
Loading data aiml file: 2.aiml

Suggestions?


Edited 1:NM....I took a gamble and deleted line 563


Edited 2: I keep on timing out and this safe mode restriction is started to make me furious....

try running botloaderinc.php from the admin folder it runs the aiml files one at a time and not all at same time.

The Ghost 01-26-2003 08:57 AM

i want to teach the tombot. I ask the tombot "Who I can teach you" and he said "If you want to teach me something say it in one sentence. Then say "Remember that." ",

but it doesn't works.

Can somebody help me? Pleaase, this bot is so cool

C.Birch 01-26-2003 09:19 AM

you need to make more aiml files with the information you want it to know and add this information to the database. I have no idea how but look at post 231

The Ghost 01-26-2003 09:20 AM

ok, but why the bot says "If you want to teach me something say it in one sentence. Then say "Remember that." ??????

C.Birch 01-26-2003 09:28 AM

because i guess its just something that the maker of the alice code made.

The Ghost 01-26-2003 09:44 AM

But i said to the bot that my name is igor schalinski, and one day later he talks everytime about Igor schalinski......

C.Birch 01-26-2003 09:53 AM

pass hehe i really have no idea how the alice code works.

BaBa2002 01-26-2003 10:42 AM

i get only smilies how can i fix that

btw Great job C.Birch

Ember 01-26-2003 11:00 AM

Run botloader.php


All times are GMT. The time now is 09:53 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.01634 seconds
  • Memory Usage 1,751KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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