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)

SilverDawn 02-08-2003 07:18 PM

This error when I run the talk.php

Quote:

Warning: Failed opening 'admin/subs.inc' for inclusion (include_path='') in /home/dfrsqu2/public_html/forums/alice/src/util.php on line 35

Warning: Empty regular expression in /home/dfrsqu2/public_html/forums/alice/src/util.php on line 365

Warning: Empty regular expression in /home/dfrsqu2/public_html/forums/alice/src/util.php on line 415

Warning: Empty regular expression in /home/dfrsqu2/public_html/forums/alice/src/util.php on line 365
What is your real name?
Here is util.php 350-420
Quote:

}
}
}
return "";

}

# Take the user input and do all substitutions and split it into sentences
function normalsentences($input){

global $contractsearch,$contractreplace,$abbrevsearch,$ab brevreplace,$removepunct,$likeperiodsearch,$likepe riodreplace,$aftersearch,$afterreplace,$replacecou nter;

#$cfull=strtoupper($input);
$cfull=$input;

$cfull=preg_replace($contractsearch,$contractrepla ce,$cfull);

$cfull=str_replace($aftersearch,$afterreplace,$cfu ll);

$replacecounter=1;
$aftersearch=array();
$afterreplace=array();

#$cfull=str_replace($removepunct,"",$cfull);
$cfull=str_replace($likeperiodsearch,$likeperiodre place,$cfull);

$newsentences=array();

# Now split based on .'s
$cfulls=split("\.",$cfull);

for ($x=0;$x<sizeof($cfulls);$x++){
if (trim($cfulls[$x])==""){

}
else {
$newsentences[]=$cfulls[$x];
}
}

return $newsentences;
}

# Reverse the gender of a phrase
function gender($input){

global $gendersearch,$genderreplace,$aftersearch,$afterre place,$replacecounter;

$newinput=preg_replace($gendersearch,$genderreplac e,$input);

$newinput=str_replace($aftersearch,$afterreplace,$ newinput);

$replacecounter=1;
$aftersearch=array();
$afterreplace=array();

return $newinput;

}

# Do a first to third person replacement
function firstthird($input){

global $firstthirdsearch,$firstthirdreplace,$aftersearch, $afterreplace,$contractsearch,$contractreplace,$re placecounter;

$newinput=preg_replace($firstthirdsearch,$firstthi rdreplace,$input);

$newinput=str_replace($aftersearch,$afterreplace,$ newinput);

$replacecounter=1;
$aftersearch=array();
Thank you very much

Mike Gaidin 02-08-2003 07:34 PM

Quote:

Originally posted by amykhar
The post icon is within the query to post the message. Simply match up the parameters in that query and set the icon parameter to 0.
Thanks. Where exactly do I find the right query?

Drago 02-08-2003 07:39 PM

Why does this bot keep calling me seeker??? It's driving me crazy!!!

xug 02-08-2003 09:16 PM

After reinstalling and downloading the latest versions I still have that ugly 'subs.inc' errors all over the place..

Please help as many have similar problems.

Martin64 02-08-2003 10:09 PM

Quote:

Originally posted by J-OST


Thanks. Where exactly do I find the right query?

View this post, I've explained how to get rid of it:

https://vborg.vbsupport.ru/showthrea...738#post346738

Mike Gaidin 02-08-2003 10:42 PM

Quote:

Originally posted by Martin64


View this post, I've explained how to get rid of it:

https://vborg.vbsupport.ru/showthrea...738#post346738

Thanks! I didn't see this before. :D


Also, can I download the aiml files to my computer from my server, modify them, and re-upload it? Or is it more complicated than that?

Martin64 02-09-2003 01:38 PM

Quote:

Originally posted by J-OST


Thanks! I didn't see this before. :D


Also, can I download the aiml files to my computer from my server, modify them, and re-upload it? Or is it more complicated than that?

Yes you can. I would suggest making a new aiml file, naming it custom.aiml, and upload it. Run botloader.php and your custom aiml will be included.

Mike Gaidin 02-09-2003 01:59 PM

Awesome! I'll do that. Does it reload all aiml files, or just new ones?

Thanks Martin64! :D

Martin64 02-09-2003 02:49 PM

Yes, if you run botloader.php it will reload all the aiml files again, and it will also empty your old patten and templates tables.

If you just want to add that extra aiml file, read the guide I wrote about 10 pages ago:

https://vborg.vbsupport.ru/showthrea...475#post347475

bandersen 02-09-2003 04:17 PM

I am still having a problem with the fopen....

My server said that for security reasons they have disabled "remote" fopen()
functions on their servers. Until these security issues are resolved they
are not enabling remote fopens() function. However, fopen() will work for
all local files i.e. if you are including or opening something locally,
it will work.

Can someone please tell me how the $ttb_alicelocation should be coded to read as a local fopen in tomstalkerbot (line 46). I have tried the following:

$ttb_alicelocation = "/forums/upload/alice/src/talk.php";

and I have also tried the more involved link that shows in my FTP..

OR,

since I do get the talk.html up in the browser and the talk.php with the reply... is there some way to "just" include this in the header without messing with fopen?


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