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)

NuclioN 01-25-2003 08:54 AM

Birch, suppose i want to maintain the current situation in the templates etc, so without running the botloader etc. again...how can i adjust/add a new set of "alice behavior" into the database trough phpmyadmin? Or is it possible to make a whole new aiml file, for example A2.aiml with a new range of brain-input for Alice? :)

C.Birch 01-25-2003 09:29 AM

i dont know has the alice bot is not made by me its made by www.alicebot.org

Ember 01-25-2003 09:40 AM

The loaders running now, taking ages on W though... hmmm.

C.Birch 01-25-2003 09:54 AM

Quote:

Originally posted by Ember
The loaders running now, taking ages on W though... hmmm.
yeah w is the biggest file, botloader.php takes so long because it has to run 300,000 queries on your database.

Kars10 01-25-2003 10:08 AM

@ C. Birch, can you please look up for a German Version? I need this hack (and i think many other germans here @ vb.org too) !:)
Or give me Input what i should change in the files. I have tested the TomBot in youre forums and he gives me some german replys...

Ember 01-25-2003 10:11 AM

It all works fine, check him out:

http://www.a51forums.com/showthread....=4892#post4892

thomas 01-25-2003 10:40 AM

Any ideas what this error message means?

Warning: fopen("http://forum.blabla.org/alice/src/talk.php?input=which+day+is+today%3F", "r") - Success in /home/blabla/www/forum/tomstalkerbot.php on line 46

Warning: fread(): supplied argument is not a valid File-Handle resource in /home/blabla/www/forum/tomstalkerbot.php on line 47

Warning: fclose(): supplied argument is not a valid File-Handle resource in /home/blabla/www/forum/tomstalkerbot.php on line 48


I receive it whenever I post to my bot forum.

Ninth Dimension 01-25-2003 10:42 AM

before I instll this, roughtly how much MySQL space does it take?

NuclioN 01-25-2003 11:29 AM

The bot can act as a forumsurfer...can it act as a chatter in the shoutbox - VBchat addon? Tomstalker.php has the code to work trough the include tag in newreply and newthread with some database instructions. The shoutbox.php works similar i guess. Maybe include a Tomstalker2.php in it with instructions to output in the VBchat?

Ember 01-25-2003 12:15 PM

How can I make him know his name and not think it is "Program E"?

obiwan8472 01-25-2003 01:06 PM

This looks great. Does it use any extra bandwidth?

Ember 01-25-2003 01:53 PM

Not bandwidth I wouldnt think, but server load.

C.Birch 01-25-2003 02:06 PM

Quote:

Originally posted by Ember
How can I make him know his name and not think it is "Program E"?
Edit the datebase table 'bot'

C.Birch 01-25-2003 02:09 PM

if someone wish's to add things to the hack feel free to do so has i not able to do anymore to it, im also not able to help in support of the alice files and how to edit it has its not my code and its far to much for me to understand.

Bitsys 01-25-2003 02:26 PM

Quote:

Originally posted by Ninth Dimension
before I instll this, roughtly how much MySQL space does it take?
It took up 16MB on localhost for me. That is before any conversations were logged.

alkatraz 01-25-2003 03:46 PM

This is a great idea!

The Ghost 01-25-2003 05:12 PM

Hi,

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?

thx in advance

flup 01-25-2003 05:22 PM

THIS IS NICE :D

Kurayami 01-25-2003 08:17 PM

Excellent, the install went without a hitch on my forum, and the bot's working fine. :)
*Whaps install*

Martin64 01-25-2003 10:02 PM

A little suggestion for everyone installing this: You might consider not grabbing threads and posts from your AI board when searching, or your visitors might think it's too much :)

Allowee 01-25-2003 10:19 PM

it seems to be that the bot isn't working when i use the quick reply box.

is there a way to fix that?

[edit]
it does work, the line was to short, sorry

nuno 01-26-2003 12:27 AM

Is it possible to add another BOT?
I want 2 bots. :D

Crinos 01-26-2003 01:40 AM

I will definitely try this out ... I have had a great deal of frustration getting the alicebot (program e) to work last year, but since it's working for many people I'll have to try it again :D

NuclioN 01-26-2003 01:57 AM

Quote:

Originally posted by nuno
Is it possible to add another BOT?
I want 2 bots. :D

-- edit --

Got it. After some errors i figured this out:


1. Make a copy of tomstalkerbot.php and name it tomstalkerbot2.php

2. In tomstalkerbot2.php give a new memberid, username and
forumid

3. Add to ALL and i repeat ALL instances of the $ttb and $ttbc etc.
in every part of the code in tomstalkerbot2.php a 2 so that they look as $ttb2, ttbc2. Look very carefully for them.

4. Under include "tomstalkerbot.php"; in newthread.php and newreply.php put:
include "tomstalkerbot2.php";

Upload the new tomstalkerbot2.php, newthread.php and newreply.php and voila.

if you see an error, use this tomstalker2.php, fill in the id's and point the url to talk.php on your server.

;)

Erwin 01-26-2003 02:48 AM

Maybe you can make the 2 bots talk to each other... it will make an infinite loop... ;)

NuclioN 01-26-2003 02:51 AM

LOL Erwin. :)

NuclioN 01-26-2003 04:07 AM

The second bot with the name "Tron" is active in our "introduce yourself" forum. Now, what would be a challenge is to let Tron respond with it's own aiml file(s) to act as a sort of FAQ bot. The aiml must have a large amount of specific questions and possible answers about your forum to play this role well. It requires a second install with the botloader.php to put those new aiml files in the right context on mysql.

I hope new aiml's with pre defined acts for FAQ or moderator tasks will emerge. :)

ManagerJosh 01-26-2003 04:27 AM

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....

mheinemann 01-26-2003 05:24 AM

My bot keeps on putting <br>'s in his posts and I have html disabled. Is there a way to remove these?

Ember 01-26-2003 06:56 AM

We're trying to teach the bot croatian, do we just tell him the english then the croation, or what?

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:19 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.02695 seconds
  • Memory Usage 1,827KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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