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)

OzRoy 02-01-2003 02:09 AM

Quote:

Originally posted by NuclioN
Sanni, your hack slows down the reply but...when the bot reply's it puts the reply on top of the thread, so above the first posting.
Hi.

I'm the one who made the changes Sanni posted.

To be honest I have no idea why the bots reply would be showing up first. The only thing I can think of is there is a mistake in the SQL statement in the showthread file you had to change.

The ORDER BY is wrong, or you changed the wrong query. The query you have to change should be around line 385. Close to the end of the file.

OzRoy 02-01-2003 02:20 AM

The exact changes that I made are:

Change showthread.php

Around line 385 change the following SQL query
Code:

$getpostids=$DB_site->query("
        SELECT post.postid FROM post
        WHERE post.threadid='$threadid' AND post.visible=1
        ORDER BY dateline $postorder LIMIT ".($limitlower-1).",$perpage

To:

Code:

$getpostids=$DB_site->query("
        SELECT post.postid FROM post 
        WHERE post.threadid='$threadid' AND post.visible=1 AND post.dateline <= ".time()."
        ORDER BY dateline $postorder LIMIT ".($limitlower-1).",$perpage

Then edit your tomstalkerbot.php

Add the lines
Code:

define ("EARLIEST_REPLY", 20);
define("LATEST_REPLY", 120);

just under
Code:

$ttb_weighting = 100;
Then around line 56 change
Code:

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


$ttb_time = time() + rand(EARLIEST_REPLY,LATEST_REPLY);

That should be it. These changes were made to version 2.2.6

There are a couple bugs that I haven't had time to fix yet. 1) the bot will show as the latest poster even though his post won't show yet.
2) If the bots post goes over to the next page then the links for the next page will show, but the bots post won't show till the time it is supposed to.

Mickie D 02-01-2003 06:05 AM

will this bot ever be able to know who each person is ???

i mean is there a way for him to be able to read the poster userid and reply to them ???

P.S this is by far the best hack i have ever used (and i been hacking for many moons now) *clicked install*

if people got together on this it could be something huge (it is already lol)

Radgam 02-01-2003 02:56 PM

Quote:

Originally posted by Mickie D
will this bot ever be able to know who each person is ???

i mean is there a way for him to be able to read the poster userid and reply to them ???

I'd like to know that too ;)

Mickie D 02-01-2003 03:10 PM

BUMP

h8 bumping but if this could be achieved the level of this hack would increase 100% !!!!

Automated 02-01-2003 03:31 PM

Quote:

Originally posted by Mickie D
BUMP

h8 bumping but if this could be achieved the level of this hack would increase 100% !!!!

Agreed! It keeps calling all of my members Matthew! Which is me :(

Would be a great addition and would easily make this the HOTM :p

Matthew

Radgam 02-01-2003 03:52 PM

And i think the AI files need some work... the answers the robot comes out with from time to time are a little strange, and i don't mean just because it doesn't understand them, sometimes it does but just says weird stuff... ;)

Steve Machol 02-01-2003 03:54 PM

Quote:

Originally posted by Radgam
... the answers the robot comes out with from time to time are a little strange, and i don't mean just because it doesn't understand them, sometimes it does but just says weird stuff... ;)
And this is different from a regular user in what way? ;)

Radgam 02-01-2003 03:55 PM

lol, well, a good point ;) He said he was female but i set him to male for starters... bit worrying ;)

bandersen 02-01-2003 04:56 PM

Did anyone try to use the paid version of Alice... has some 1000 more questions/answers included I think (correct me if I am wrong). When I tested the bot on www.alicebot.org it did not sound as "off" as the talk.html /php (I am trying to install).

A personality test has been added to it also. The bot simply inserts hidden personality test questions into the dialogue, and makes up her mind about your personality type. You can then ask "what is my personality type?". Sound pretty cool...


All times are GMT. The time now is 05:48 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.01374 seconds
  • Memory Usage 1,744KB
  • 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_code_printable
  • (4)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