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)

drumsy 01-27-2003 04:00 PM

How do I undo the SQL commands that I ran from db.sql? I'm encountering problems with safemode and it's becoming to much of a pain to work with.

fury 01-27-2003 04:05 PM

Quote:

Originally posted by TECK
Code:

$string = preg_replace( '~<br />~' , '' , $string );

There's also the much faster method of str_replace('<br />' , '', $string );

Mijae 01-27-2003 06:25 PM

He wont answer anything but smilies. I used ManagerJosh's technique to upload the files because I have PHP in safe mode.

Also, all files did upload except the D.aiml and I have 34449 entries, not 41125.

Help me? :P

JBMoney 01-27-2003 06:31 PM

I get this at the end of running botloader.php. What did I do wrong?

Quote:

Warning: fopen(subs.inc) [function.fopen]: failed to create stream: Permission denied in /home2/www/bushwhacked/forum/alice/src/admin/botloaderfuncs.php on line 85

Warning: fwrite(): supplied argument is not a valid stream resource in /home2/www/bushwhacked/forum/alice/src/admin/botloaderfuncs.php on line 77

Warning: fwrite(): supplied argument is not a valid stream resource in /home2/www/bushwhacked/forum/alice/src/admin/botloaderfuncs.php on line 77

Warning: fwrite(): supplied argument is not a valid stream resource in /home2/www/bushwhacked/forum/alice/src/admin/botloaderfuncs.php on line 77

Warning: fwrite(): supplied argument is not a valid stream resource in /home2/www/bushwhacked/forum/alice/src/admin/botloaderfuncs.php on line 77

Warning: fwrite(): supplied argument is not a valid stream resource in /home2/www/bushwhacked/forum/alice/src/admin/botloaderfuncs.php on line 77

Warning: fwrite(): supplied argument is not a valid stream resource in /home2/www/bushwhacked/forum/alice/src/admin/botloaderfuncs.php on line 77

Warning: fwrite(): supplied argument is not a valid stream resource in /home2/www/bushwhacked/forum/alice/src/admin/botloaderfuncs.php on line 77
DONE LOADING
Inserted 41126 categories into database

Mijae 01-27-2003 06:33 PM

Could anyone help me out? PM me please.

CeleronXL 01-27-2003 06:38 PM

No, don't PM him, answer here... I have the same problem. :( It'll only answer VERY few posts, all others will be smilie spam. I did the same thing as v0id for uploading too. I thought it had worked too... :(

JBMoney 01-27-2003 06:45 PM

Help? I got this reply from the bot.

Quote:

Warning: main(admin/subs.inc) [function.main]: failed to create stream: No such file or directory in /home2/www/bushwhacked/forum/alice/src/util.php on line 35



Warning: main() [function.main]: Failed opening 'admin/subs.inc' for inclusion (include_path='') in /home2/www/bushwhacked/forum/alice/src/util.php on line 35



Warning: Empty regular expression in /home2/www/bushwhacked/forum/alice/src/util.php on line 365



Warning: Empty regular expression in /home2/www/bushwhacked/forum/alice/src/util.php on line 415



Warning: Empty regular expression in /home2/www/bushwhacked/forum/alice/src/util.php on line 365

What do you do in your spare time?
:baaa:

JBMoney 01-27-2003 07:11 PM

Fixed. Appears to be working.

Erwin 01-27-2003 08:19 PM

The bot is working fine on my site - there are over 3,600 posts in his forum in under 20 hours, and he's made half of them already.

The only problem: server load - I get 200-300 concurrent users online, and this bot is sucking up my server load like crazy... it's at least doubled, and at times quadrupled! Hopefully the novelty will die down soon. :)

Radgam 01-27-2003 08:30 PM

For anyone who has been having any of these problems with the bots output:
[list=1][*]A large amount of tabs in the middle of a sentence[*]A full stop or question mark being beside more text (although there should be a space)[*]<br>s in the text[/list=1]

Do the following:

Code:

Find:
$ttb_time = time() + rand(1,5);

Code:

After that line add:
       
// Clean Output
$response = str_replace('<br>' , '', $response );
$response = str_replace('</br>' , '', $response );
$response = str_replace(', .' , '.', $response );
$response = preg_replace("/(\?|\.|!)(\w)/","$1 $2",$response);
$response = preg_replace("/(\w|,)\s+(\w|\?|\.|!)/","$1 $2",$response);
$response = preg_replace("/\n\s+/","\n",$response);

Hope this helps :) Thanks to fury for info on removing the <br>s & just to mention, the search to remove </br> was intentional as i have noticed it in the output from time to time.

Edit
I made a mistake in the original coding so please update to the above ASAP if you have used it :) Thanks to JBMoney for reporting the problem.


All times are GMT. The time now is 12:50 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.01791 seconds
  • Memory Usage 1,745KB
  • 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
  • (3)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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