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)

corsacrazy 01-24-2003 01:58 PM

can i program more knowledge into it ? 4 example i wont him to know more about cars is there i way i can specify specific questions and answers ?

C.Birch 01-24-2003 02:00 PM

check out customtags.php in side the plugins folder if not check out www.alicebot.org

corsacrazy 01-24-2003 02:20 PM

cheers mate !

NuclioN 01-24-2003 02:23 PM

Installed and working great. :) However...all reply's appear with a quote. In larger threads this is not funny, so what to do about that?

C.Birch 01-24-2003 02:28 PM

to remove the quote you need to edit this part i think of the tomstalkerbot.php file

PHP Code:

// get alice's response

        
$rss preg_replace("#^(.*)\[/quote\]#ies","",$message);
    
$ff fopen($ttb_alicelocation "?input=" urlencode($rss),"r");
    
$response fread($ff,10000);
    
fclose($ff);

    
$ttb_time time() + rand(1,5);    
    
$ttb_message "[ QUOTE] " $rss " [ /QUOTE]\r\n\r\n" $response $emoticon

note i put a gap in the quote tags to stop it quoteing on here

C.Birch 01-24-2003 02:34 PM

im not 100% but if you remove this line

$rss = preg_replace("#^(.*)\[/quote\]#ies","",$message);

and then edit

$ttb_message = "[ QUOTE] " . $rss . " [ /QUOTE]\r\n\r\n" . $response . $emoticon;

to

$ttb_message = . $response . $emoticon;

but its best if one the good hackers on here helps has my php is not that good.

NuclioN 01-24-2003 02:44 PM

Not working, i get this:

[ QUOTE] Could you stop quoting please [ /QUOTE]

Birch, your solution gives a parse error.

NuclioN 01-24-2003 02:52 PM

Changing:
$ttb_message = "[ QUOTE] " . $rss . " [ /QUOTE]\r\n\r\n" . $response . $emoticon;

to:

$ttb_message = "" . $response . $emoticon;

does the trick. Quotes are gone. :)

Dean C 01-24-2003 03:33 PM

Wow nice hack - 12 pages in 2 days isn't bad ;)

Will look into this soon ...

Also always keep the link to the zip in your first post :) (the direct link that is ;))

- miSt

C.Birch 01-24-2003 03:45 PM

Quote:

Originally posted by Mist
Wow nice hack - 12 pages in 2 days isn't bad ;)

Will look into this soon ...

Also always keep the link to the zip in your first post :) (the direct link that is ;))

- miSt

yeah but its 11 pages for probs :p

I have added a link in the first post to the zip it self also :p


All times are GMT. The time now is 12:55 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.01748 seconds
  • Memory Usage 1,743KB
  • 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
  • (1)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