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)

BaBa2002 01-26-2003 12:15 PM

i already run it 6 times and i still get smilies

Ember 01-26-2003 12:30 PM

Have you set up the database info right?

thomas 01-26-2003 12:44 PM

I have the same problem as Baba2000. Additionally, I receive the following errors when posting to the bot forum:
Code:

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

All Alice folders are set to 777.

bromyaur 01-26-2003 12:54 PM

this looks cool but I have a question or two.

does anyone run this on a shared server? and did the initial 300,000 queries at setup cause any problems with the server load? I dont want to crash the server since I am on a shared hosting plan and dont want to affect someone elses site.

How many queries does this bot use once installed? Is it server intensive?

thanks.

BaBa2002 01-26-2003 01:02 PM

what will you said with the database info
and like thomas i get the same errors

C.Birch 01-26-2003 01:08 PM

i think its something to do with your servers maybe they ont have something that the alice softwear needs

nuno 01-26-2003 01:57 PM

Quote:

Originally posted by Erwin
Maybe you can make the 2 bots talk to each other... it will make an infinite loop... ;)
touch? Erwin :smoke:

nuno 01-26-2003 01:58 PM

Quote:

Originally posted by NuclioN


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

;)

thanks @NuclioN https://vborg.vbsupport.ru/external/2011/01/19.gif

nuno 01-26-2003 02:47 PM

My BOT isn't showing up on who's online. :confused:

CeleronXL 01-26-2003 03:16 PM

I get this error when trying to load botloaderinc.php:

Code:

This script is loading your AIML files one at a time to prevent the script from timing out. Only use this script if your PHP is running in safe mode. If you are still experiencing timeouts then you need to edit your AIML files into smaller files.


Fatal error: Call to undefined function: loadstartupinc() in /weeeeeee/html/fs/alice/src/admin/botloaderinc.php on line 60

Ignore the "weeeee" ;)

Dragomancer 01-26-2003 04:14 PM

This hack really rocks. Well done :)

Ember 01-26-2003 04:48 PM

Quote:

Originally posted by nuno
My BOT isn't showing up on who's online. :confused:
He wont ever show up on the whose online, cos he's never online.

nuno 01-26-2003 05:01 PM

Quote:

Originally posted by Ember


He wont ever show up on the whose online, cos he's never online.

Dang. :(
I want Tom to be always online.

CeleronXL 01-26-2003 05:04 PM

No one knows why loadbotinc() is an undefined function for me in botloadinc.php? :(

Ember 01-26-2003 05:05 PM

Here's an idea...

moify the place where it displays the users online, and modify it so its reads

<a href="http://linktotomsprofile">TomBot</a>,

Followed by whatevers there... that should make him appear at the front of the list.

Ember 01-26-2003 05:08 PM

Quote:

Originally posted by CeleronXL
No one knows why loadbotinc() is an undefined function for me in botloadinc.php? :(

Its an undefined function, meaning that botfunctions.php (or something along those lines) isnt there or it is incomplete, try reuploading it - and CH modd'ing it correctly.

CeleronXL 01-26-2003 05:14 PM

Quote:

Originally posted by Ember



Its an undefined function, meaning that botfunctions.php (or something along those lines) isnt there or it is incomplete, try reuploading it - and CH modd'ing it correctly.

I reuploaded everything and got the same error. I'm using botloaderinc.php because I'm running in safe mode. Everything is CHMODed 777 and everything's in there. :-/

Ember 01-26-2003 05:18 PM

Have you tried posting the contents of botloaderinc.php into the top of botloader.php - this should mean that the functions are all defined in one place.

I dont understand why you are using botloaderinc.php though?

CeleronXL 01-26-2003 05:19 PM

You are supposed to use botloaderinc.php instead of botloader.php if your server is running in safe mode (which apparently it is).

EDIT: I get this when using just plain botloader.php:

Warning: Cannot set time limit in safe mode in /weeeeeeee/html/fs/alice/src/admin/botloaderfuncs.php on line 563

So I guess one would think that it is safe mode?

Ember 01-26-2003 05:28 PM

Ok, I see... well unless you wanna delete line 563 and see what happens, I cant help you any further :( sorry!

CeleronXL 01-26-2003 05:31 PM

Quote:

Originally posted by Ember
Ok, I see... well unless you wanna delete line 563 and see what happens, I cant help you any further :( sorry!
Hmm.. that made no change in the outcome, but on line 60 of botloaderinc.php is

$doneloading=loadstartupinc($fileid);

I've looked through and found $fileid defined many times... :-/

Thanks though. :)

Ember 01-26-2003 05:34 PM

Good luck, hope you get it sorted, this hack really is damned good :)

CeleronXL 01-26-2003 05:39 PM

It would've been nice if the author had made a dump of all of those queries so we could just restore it instead of running such an outrageous number of queries.

Steve Machol 01-26-2003 05:42 PM

Great hack but I have one slight problem. The script always addes an empty image to every reply:

<img src="" alt="" border="0">

Any ideas how I get rid of this?

Ember 01-26-2003 05:47 PM

Birch is having a hard time, as he isnt the original hacker, he is just releasing it on behalf of his forums, one of the other admins over there made it. And was reluctant to let him release it.

CeleronXL 01-26-2003 05:54 PM

Quote:

Originally posted by Ember
Birch is having a hard time, as he isnt the original hacker, he is just releasing it on behalf of his forums, one of the other admins over there made it. And was reluctant to let him release it.
Oh.... :-/ Anyone have a dump of everything that these scripts does?

Martin64 01-26-2003 06:07 PM

Quote:

Originally posted by nuno

Dang. :(
I want Tom to be always online.

Logican has made some nice instructions for doing this easily, view this thread: https://vborg.vbsupport.ru/showthrea...=always+online

If you want to see a demo of what it'll look like, check my boards: www.emutalk.net

:)

This hack is fun, almost 2000 posts in the bot forum in less than 24 hours :D

NTLDR 01-26-2003 06:15 PM

Quote:

Originally posted by CeleronXL
Hmm.. that made no change in the outcome, but on line 60 of botloaderinc.php is

$doneloading=loadstartupinc($fileid);

Change that to:

PHP Code:

$doneloading=loadstartup($fileid); 

And it should work fine, did for me.

CeleronXL 01-26-2003 06:29 PM

Quote:

Originally posted by NTLDR


Change that to:

PHP Code:

$doneloading=loadstartup($fileid); 

And it should work fine, did for me.

Thanks! I also had to get rid of the time line.

I still get time outs after 30 seconds. How do you make these files smaller? I can't see a logical area to cut them down....

I need to break down at least D, I, and W.

N9ne 01-26-2003 07:08 PM

Can you tell me more about these timeouts? When do you get the timeouts? Where? Why?

okrogius 01-26-2003 07:39 PM

I installed it all to directions, but it doesn't appear to be any sort of an Artificial [i]Intelligence[i/], more like artificial stupiditiy.

http://www.cgshock.com/ai/src/talk.html

Any ideas what I'm doing wrong?

ManagerJosh 01-26-2003 07:42 PM

Okay I figured a way around the timeouts. Group your files together, and move all the *.amil files to the alice directory. Move like 5-7 files into the aiml directory and run botloaderinc.php

After you are done loading that, there is a link to continue processing...

From there, you move those 5-7 files back into the alice directory and move the next 5-7 files into the aiml directory. Run continue.

This will pretty much prevent timeouts. Keep repeating until you are done.

Note: KEEP STARTUP.XML in AIML NO MATTER WHAT.

ManagerJosh 01-26-2003 07:52 PM

Quote:

Originally posted by NTLDR
In newthread.php place the code after:

PHP Code:

      // update forum stuff
      
if ($visible==1) {  
        
$DB_site->query("UPDATE forum SET replycount=replycount+1,threadcount=threadcount+1,lastpost='".time()."',lastposter='".add$
      } 

Then the bot will show as the last poster, and newreply.php after:

PHP Code:

        } else {
          
$DB_site->query("UPDATE thread SET lastpost='".time()."',replycount=replycount+1,lastposter='".addslashes($postusername).$
        }
      } 



I did as you advised NTLDR, however my bot isn't showing as the last user posted on my forumhome. However it is showing up as the last poster on my forum itself.

EDIT: Stand corrected...it is only newreply.php that it doesn't show. Newthread.php works.


EDIT 2: Okay figured out how to make it work. Instead of adding

PHP Code:

include "tomstalkerbot.php"

after

PHP Code:

        } else {
          
$DB_site->query("UPDATE thread SET lastpost='".time()."',replycount=replycount+1,lastposter='".addslashes($postusername).$
        }
      } 

in newreply.php, add

PHP Code:

include "tomstalkerbot.php"

after

PHP Code:

      // update forum stuff
      
if ($visible==1) {
        
$DB_site->query("UPDATE forum SET replycount=replycount+1,lastpost='".time()."',lastposter='".addslashes($postusername)."' WHERE forumid IN ($foruminfo[parentlist])");
      } 

in newreply.php

This will make it show up on the forumhome

Radgam 01-26-2003 08:31 PM

now if someone could just update the install file... :)

N9ne 01-26-2003 08:45 PM

This bot is amazing...almost 800 posts in the bot forum I made in about one hour...

CeleronXL 01-26-2003 08:54 PM

The bot is just smilie spamming everything...

IE: a post will just contain ":baaa:"

okrogius 01-26-2003 08:58 PM

It will post only smilies if you didn't run the installer file, as directed by the readme file.

Radgam 01-26-2003 09:02 PM

Worked for me but i have 2 questions

How can i change the smiles is trys to use? I don't have the same ones installed, and what order are they meant to run in in the $emot array?

2) The bot doesn't reply to short sentences, anyway to make it? ;)

Thanks, and this is awesome!

Martin64 01-26-2003 09:15 PM

Quote:

Originally posted by Radgam
Worked for me but i have 2 questions
2) The bot doesn't reply to short sentences, anyway to make it? ;)

Thanks, and this is awesome!

Although I haven't tested this, I think you would have to edit this file in tomstalkerbot.php and reduce the 10 to a 5 to make it reply to 5 character sentences:

if (strlen($ttb_message2)>10)

CeleronXL 01-26-2003 09:24 PM

Agh, that's all it's doing now.. Picking out of those smilies but not saying a single thing.

The most we got out of him was "Interesting :indif:"

EDIT: I did run it..... the botloader file right? Yeah...

You see, I used a method similar to ManagerJosh's.. I think every time you rerun the startup script, it deletes the old inserted data to redo it. Therefore, moving the *.aiml files and rerunning that script shouldn't work... :-/

Also, botloaderinc.php does NOT load the files individually, it loads them all, what's with this? Is there a modification I can make to make it really only load one?

Quote:

Originally posted by Radgam
Worked for me but i have 2 questions

How can i change the smiles is trys to use? I don't have the same ones installed, and what order are they meant to run in in the $emot array?

2) The bot doesn't reply to short sentences, anyway to make it? ;)

Thanks, and this is awesome!

Edit tomstalkerbot.php and right near the top I'm sure you'll notice the smilies... If not, search for :xmas: and you'll see them.


All times are GMT. The time now is 11:12 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.01823 seconds
  • Memory Usage 1,843KB
  • 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
  • (2)bbcode_code_printable
  • (8)bbcode_php_printable
  • (14)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