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)

Brad 01-24-2003 07:54 AM

Tim: im installing now, ill report if the method works on my server aswell. brb. :)

C.Birch 01-24-2003 08:02 AM

the hack it self is working fine i just dont understand why the alice codeing will not install. the botloader.php runs but its not adding anything to the database :(

Kars10 01-24-2003 08:07 AM

This hack rocks!!
@ C. Birch, when can we download it ? :confused: ;)
Thanks

C.Birch 01-24-2003 08:09 AM

you can not yet theres a prob with the installing of the alice code so i have taken the zip down.

But by the looks of it i have it working again now.

C.Birch 01-24-2003 08:13 AM

it defo looks like i have it working again now :) has its adding things to my database :)

Tim Wheatley 01-24-2003 08:14 AM

Is botloader being told where to add the info? As in what tables/db etc?

C.Birch 01-24-2003 08:16 AM

prob was 1 i said to run the botloader.php from the wrong folder well i had it in the wrong folder in the zip it should be run from the admin folder i told you to chmod to 777

and 2 the botloader.php file was bad in the zip it was ago 20 mb in size it should not be anywhere near that big.

Tim Wheatley 01-24-2003 08:17 AM

Quote:

Originally posted by C.Birch
it defo looks like i have it working again now :) has its adding things to my database :)
YEEHAW!

C.Birch 01-24-2003 08:18 AM

YAY got it working :)

after botloader has done you sould see this at the bottom of the page:

DONE LOADING
Inserted 41125 categories into database

WARNING! You should password protect the admin directory or remove the botloader.php script or people may be able to abuse your server.
Click here to talk to the bot

execution time: 424.973776
Templates per second=96.770676974666
Templates per minute=5806.24061848


If it says Inserted 0 categories into database its not added anything to the database

Tim Wheatley 01-24-2003 08:23 AM

But... when I ran botloader.php from the folder it was in the first zip... it said 41125 inserted... But nothing is in the tables in the db - are you sure it's workin? :)

NuclioN 01-24-2003 08:24 AM

Yep, a huge botloader alright. Can you please add the right file in post 1? Tnx. :D

C.Birch 01-24-2003 08:44 AM

:( its added everything it needs to the database but its still taking crap.

C.Birch 01-24-2003 08:44 AM

just smilies

NuclioN 01-24-2003 08:53 AM

As mentioned before, how did you get it to work on that forum in the first post? Just smileys is fun for one or two times but Alice has warning points already :D

C.Birch 01-24-2003 08:54 AM

ok prob is botloader.php when its installed the database made the bot id 2 the hack it self is calling for bot id 0

NuclioN 01-24-2003 08:58 AM

The smiley array comes from the tomstalker.php and that part is working good. To good. Under that array are the other ones, tbb etc. Maybe there is a part that can not connect to de db?

C.Birch 01-24-2003 09:08 AM

Quote:

Originally posted by NuclioN
The smiley array comes from the tomstalker.php and that part is working good. To good. Under that array are the other ones, tbb etc. Maybe there is a part that can not connect to de db?
thats what im looking at because its calling the wrong bot id number.

C.Birch 01-24-2003 09:14 AM

this is my tomstalkerbot.php file can anyone see where it says where to call the bot and its id number?


<?php

// this is a percentage, determining how often the bot makes a reply. 100 means it will reply every time
// 50 means it will reply half the time

$ttb_weighting = 100;

$ttb = 1; // change to 0 to turn off;
$ttb_memberid = 2171;
$ttb_username = "TomBot";
$ttb_forumid = 144;

$ttb_alicelocation = "http://www.ultimate-forums.co.uk/forums/alice/src/talk.php";

// END CONFIG

if ($ttb==1 AND rand(1,100)<=$ttb_weighting AND $forumid==$ttb_forumid AND $bbuserinfo[userid]!=$ttb_memberid) {gottb();};


function gottb() {
global $message, $DB_site,$ttb_memberid, $ttb_username, $threadid, $visible, $foruminfo, $ttb_alicelocation;
$emot = array(":)",":(",":xmas:",":D",":baaa:",":cool:",": rolleyes:",":mad2:");
$emoticon = " " . $emot[rand(0,7)];

$ttb_message = $message;
$ttb_message2 = $ttb_message;
// can't be bothered to code correctly, no preg for you people
$ttbc = $message;
$ttbc = str_replace("[/quote]","",$ttbc);
$tthc = $message;
$tthc = str_replace("###","",$tthc);
if ($tthc != $ttb_message) {return true;};

if ($ttbc != $ttb_message)
{

// get rid of quotes which will confuse the bot
$ttb_message2 = preg_replace("#(\[quote\].*\[/quote\])#ies","",$ttb_message);
$ttb_message2 = preg_replace("#(\[quote.*\].*\[/quote\])#ies","",$ttb_message2);
$ttb_message2 = preg_replace("#(\[.+\])#ies","",$ttb_message2);

}
if (strlen($ttb_message2)>10)
{
$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 . "
\r\n\r\n" . $response . $emoticon;
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,at tachmentid,pagetext,allowsmilie,showsignature,ipad dress,iconid,visible) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars(" "))."','".addslashes($ttb_username)."','$ttb_membe rid','".$ttb_time."','1','".addslashes($ttb_messag e)."','1','1','666.666.666.666','10','1')");
$postid=$DB_site->insert_id();
indexpost($postid,1);


if ($visible) {
if ($threadinfo[replycount]%10==0) {
$replies=$DB_site->query_first("SELECT COUNT(*)-1 AS replies FROM post WHERE threadid='$threadid'");
$DB_site->query("UPDATE thread SET lastpost='".time()."',replycount='$replies[replies]',lastposter='".addslashes($ttb_username)."' WHERE threadid='$threadid'");
} else {
$DB_site->query("UPDATE thread SET lastpost='".time()."',replycount=replycount+1,last poster='".addslashes($ttb_username)."' WHERE threadid='$threadid'");
}
}

$DB_site->query("UPDATE forum SET replycount=replycount+1,lastpost='".time()."',last poster='".addslashes($ttb_username)."' WHERE forumid IN ($foruminfo[parentlist])");
$DB_site->query("UPDATE user SET
".iif ($foruminfo[countposts],"posts=posts+1,","")."
$dotitle"."lastpost='".time()."' WHERE userid='$ttb_memberid'");
}
}
?>

C.Birch 01-24-2003 09:15 AM

im guessing its indexpost($postid,1);

Brad 01-24-2003 09:45 AM

I think ive found the problem :). I must run botloader.php again however, ill report back in 30 minutes

C.Birch 01-24-2003 09:49 AM

YAY

got him working again on my forum :>

C.Birch 01-24-2003 09:55 AM

Im just updateing all the files in zip with new ones and editing the install file and then i upload it again to be tested out :)

madhouse 01-24-2003 09:57 AM

Nice job C.Birch,

Just kinda waiting like the rest for a stable version... :)

x8oz 01-24-2003 09:59 AM

i downloaded the bot.zip "the first one" and couldnt get it to work...so i read the forum here, and did the following to get my bot to say more than smilies... =)

1. I followed the directions like the install.txt said..
2. I changed all the "alice and its sub dirs" CHmod to 777
3. I deleted the 20mb botloader.php
4. in the alice\src\admin, there are two files with the extestion name "11" i renamed them to "php" which one is the botloader.
5. i excuted the botloader from the alice\src\admin DIR

well the script loaded and it did something...

Warning: fwrite(): supplied argument is not a valid File-Handle resource in /home/lalalala/public_html/forums/alice/src/admin/botloaderfuncs.php on line 77
DONE LOADING
Inserted 41126 categories into database


well i tested the bot and its say things other then smilies...
=)
example:

C.Birch 01-24-2003 10:00 AM

its on its way i hope its up and working again no my forums if you wish to look why i update the files, guests can post in the tombot forum btw.

C.Birch 01-24-2003 10:02 AM

Quote:

Originally posted by x8oz
i downloaded the bot.zip "the first one" and couldnt get it to work...so i read the forum here, and did the following to get my bot to say more than smilies... =)

1. I followed the directions like the install.txt said..
2. I changed all the "alice and its sub dirs" CHmod to 777
3. I deleted the 20mb botloader.php
4. in the alice\src\admin, there are two files with the extestion name "11" i renamed them to "php" which one is the botloader.
5. i excuted the botloader from the alice\src\admin DIR

well the script loaded and it did something...

Warning: fwrite(): supplied argument is not a valid File-Handle resource in /home/lalalala/public_html/forums/alice/src/admin/botloaderfuncs.php on line 77
DONE LOADING
Inserted 41126 categories into database


well i tested the bot and its say things other then smilies...
=)
example:


yep thats right thats what im just updateing the zip file with.

Kars10 01-24-2003 10:12 AM

Thanks C.Birch!
Will test it right now!! :D

Tim Wheatley 01-24-2003 10:17 AM

Me too, will report back ASAP (56k!)

C.Birch 01-24-2003 10:17 AM

see ya in 30 min then lol

C.Birch 01-24-2003 10:25 AM

Run everyone he is after us:

Quote:
do you plan to take over the world?

I can't disclose all of my plans yet.

Brad 01-24-2003 10:25 AM

argh!, LOL. ill report back to *runs botloader for the 5th time this morning*

C.Birch 01-24-2003 10:29 AM

you should get adsl only takes a few min ;)

Kars10 01-24-2003 10:35 AM

bTW. @ C.Birch, can TomBot reply in German by Default? :confused:

C.Birch 01-24-2003 10:38 AM

try at www.alicebot.org and see if they have german versons of the aiml files

if they do just upload only the aiml files in to the aiml folder in place of the others and then run botloader.php again to add the german versons to the database.

Xyphen 01-24-2003 10:41 AM

this is an awesome hack.. I might install it :)

C.Birch 01-24-2003 10:58 AM

does the new zip work anyone?

Kars10 01-24-2003 11:11 AM

@ C.Birch, ive found these files.
I havent installed the hack right now, so can i just replace the files with that one in the zip?
Please have a look. :)

C.Birch 01-24-2003 11:16 AM

im not to sure has the alice codeing is not mine but you can give it a try :)

C.Birch 01-24-2003 11:17 AM

but i can not see why it would not work has long has you upload the files in that zip to the aiml folder, try it and get back to me.

Brad 01-24-2003 11:19 AM

Quote:

Originally posted by C.Birch
you should get adsl only takes a few min ;)

Not avaible in my area, same as cable and anything else.


All times are GMT. The time now is 05:43 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.01760 seconds
  • Memory Usage 1,815KB
  • 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
  • (5)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