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)

corsacrazy 01-24-2003 01:58 PM

can i program more knowledge into it ? 4 example i wont him to know more about cars is there i way i can specify specific questions and answers ?

C.Birch 01-24-2003 02:00 PM

check out customtags.php in side the plugins folder if not check out www.alicebot.org

corsacrazy 01-24-2003 02:20 PM

cheers mate !

NuclioN 01-24-2003 02:23 PM

Installed and working great. :) However...all reply's appear with a quote. In larger threads this is not funny, so what to do about that?

C.Birch 01-24-2003 02:28 PM

to remove the quote you need to edit this part i think of the tomstalkerbot.php file

PHP Code:

// get alice's response

        
$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 " [ /QUOTE]\r\n\r\n" $response $emoticon

note i put a gap in the quote tags to stop it quoteing on here

C.Birch 01-24-2003 02:34 PM

im not 100% but if you remove this line

$rss = preg_replace("#^(.*)\[/quote\]#ies","",$message);

and then edit

$ttb_message = "[ QUOTE] " . $rss . " [ /QUOTE]\r\n\r\n" . $response . $emoticon;

to

$ttb_message = . $response . $emoticon;

but its best if one the good hackers on here helps has my php is not that good.

NuclioN 01-24-2003 02:44 PM

Not working, i get this:

[ QUOTE] Could you stop quoting please [ /QUOTE]

Birch, your solution gives a parse error.

NuclioN 01-24-2003 02:52 PM

Changing:
$ttb_message = "[ QUOTE] " . $rss . " [ /QUOTE]\r\n\r\n" . $response . $emoticon;

to:

$ttb_message = "" . $response . $emoticon;

does the trick. Quotes are gone. :)

Dean C 01-24-2003 03:33 PM

Wow nice hack - 12 pages in 2 days isn't bad ;)

Will look into this soon ...

Also always keep the link to the zip in your first post :) (the direct link that is ;))

- miSt

C.Birch 01-24-2003 03:45 PM

Quote:

Originally posted by Mist
Wow nice hack - 12 pages in 2 days isn't bad ;)

Will look into this soon ...

Also always keep the link to the zip in your first post :) (the direct link that is ;))

- miSt

yeah but its 11 pages for probs :p

I have added a link in the first post to the zip it self also :p

jbear6 01-24-2003 04:02 PM

Nice hack :)
Has anyone tried this on 2.2.6 since yesterday (early in this thread someone was unsuccessful)?

Thanks,
Jbear6

NTLDR 01-24-2003 04:23 PM

Quote:

Originally posted by Link14716
Code:

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/sites/site68/web/forums/alice/src/graphnew.php on line 125



Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/sites/site68/web/forums/alice/src/graphnew.php on line 231



Fatal error: Call to undefined function: get_defined_functions() in /home/sites/site68/web/forums/alice/src/util.php on line 565

My SquallBot keeps posting that... :(

Any ideas? I followed the instructions correctly...


Make sure allow_call_time_pass_reference is set to ON in your php.ini I think that should ger rid of that error.

NTLDR 01-24-2003 04:25 PM

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).$
        }
      } 


alanvo 01-24-2003 04:37 PM

I got to get something straight...

So you're telling me this Bot get better with it's talking as it post in your forum? Which means, it learns!?

alanvo 01-24-2003 04:38 PM

I mean, think about it, if it learns, I can train it to be my moderator...hehhee

Merjawy 01-24-2003 04:46 PM

cool idea, I love it and I will try it on my local fist

I was gonna mention the quote deal but someone esle did thats not fixed yet.. cuz in large posts, quoting can be well, not good

NTLDR I wish you take a look and fix the zipped file as I see you added your 2.5 cents there which is very much appreciated :)

Thanks all I don't install many hacks but this one I can use but will have to change its language totaly

Martin64 01-24-2003 04:47 PM

Version 1.1 of this hack is working, I have installed it locally and it does what it's supposed to. :)

NTLDR 01-24-2003 04:55 PM

I can confirm the zip file for 1.1 works correctly. If you have shell access you can CHMOD the files with:

Code:

chmod -R 777 alice/
Assuming alice/ is a direcory in the one your in, otherwise you need to chmod each file 777 via FTP.

botloader.php does take a while to run, make sure you've changed all 4 variables in the db_prefs.php and run botloader from alice/src/admin :)

attic 01-24-2003 05:09 PM

Hi,

It's working great here.
Just wondering if its possible to adjust the frequency the bot answers somehow. I figured it might get annoying if it replies to every post u make.

Just some thoughts...

hp

Link14716 01-24-2003 05:14 PM

Quote:

Originally posted by NTLDR



Make sure allow_call_time_pass_reference is set to ON in your php.ini I think that should ger rid of that error.

I do not have access to that. ;)

I will have to wait for PHP to be upgraded on my server. :)

C.Birch 01-24-2003 05:15 PM

Quote:

Originally posted by attic
Hi,

It's working great here.
Just wondering if its possible to adjust the frequency the bot answers somehow. I figured it might get annoying if it replies to every post u make.

Just some thoughts...

hp

in tomstalkerbot.php

Edit:

$ttb_weighting = 100;

100 = 100%

if you edit it to 50 (50%) it will reply half the time

NTLDR 01-24-2003 05:22 PM

Quote:

Originally posted by Link14716


I do not have access to that. ;)

I will have to wait for PHP to be upgraded on my server. :)

The following in a .htaccess file should work too ;)

Code:

php_flag allow_call_time_pass_reference on

C.Birch 01-24-2003 05:36 PM

Just added a updated zip file in first post that has NTLDR's last poster fix in the install file.

zachb 01-24-2003 06:30 PM

It works on mine perfectly. Any way to get him to only respond to one topic?

zachb 01-24-2003 06:33 PM

here are my forums: http://www.sfpunk.com

he posts in forum 10, general stuff. very funny. thanks for such a great hack!

zajako 01-24-2003 09:33 PM

for some reason it posts as a guest, i check the userid its all correct.

Gryphon 01-24-2003 10:51 PM

Working great here, *clicks install*.

I had some errors from the loader becuase subs.inc wasn't writable though, I didn't see that mentioned in the install.

partang2 01-24-2003 11:10 PM

Very nice!!
*Clicks Install*

C.Birch 01-25-2003 12:03 AM

Quote:

Originally posted by Blackjack
Working great here, *clicks install*.

I had some errors from the loader becuase subs.inc wasn't writable though, I didn't see that mentioned in the install.

subs.inc should not be in the zip has the botloader.php makes it so i have just removed it from the zip file and reuploaded the zip in first post so no other person gets this error.

NuclioN 01-25-2003 12:34 AM

Curious as members are and in this case moderators, clicking all possible buttons and sniffing in the outer regions of forums, they found this when they check Alice's ip address trough the postbit:

Warning: Address is not in a.b.c.d form in /blabla/home/bla/www.cu.org/HTML/postings.php on line 269

Ip address: 666.666.666.666 is ok however. :)

zajako 01-25-2003 01:27 AM

yeah i got that too :P

Gryphon 01-25-2003 01:33 AM

Excellent hack.

Req: It would be nice if you could set it to have different posting frequency for each forum.

fid.2 - Main forum - 30%
fid.15 - BotTalk forum - 100%

Also would be cool if you could make it post if it's name is said even with low frequency.

Thanks Birch :D

TheComputerGuy 01-25-2003 02:24 AM

Quote:

<br />
<b>Warning</b>: Failed opening 'admin/subs.inc' for inclusion (include_path='') in <b>/home/runaked/public_html/forums/alice/src/util.php</b> on line <b>35</b><br />
<br />
<b>Warning</b>: Empty regular expression in <b>/home/runaked/public_html/forums/alice/src/util.php</b> on line <b>365</b><br />
<br />
<b>Warning</b>: Empty regular expression in <b>/home/runaked/public_html/forums/alice/src/util.php</b> on line <b>415</b><br />
<br />
<b>Warning</b>: Empty regular expression in <b>/home/runaked/public_html/forums/alice/src/util.php</b> on line <b>365</b><br />

TheComputerGuy 01-25-2003 02:25 AM

that one file it is looking for does not exist...

madhouse 01-25-2003 02:31 AM

Quote:

Edit to meet your folder setup and your datebase

Login to phpmyadmin and check in the bots table that the bot id is 0
you find that the table bots the id number in there needs editing to 0 from 1

I have to ask why do you check this before you run teh db.sql?

I checked it after I ran db.sql and I checked the db for that under bots , but dont see what you are trying to refer here?

Any help would be nice.....THanks@!

NuclioN 01-25-2003 02:35 AM

Quote:

Originally posted by Blackjack
Excellent hack.

Req: It would be nice if you could set it to have different posting frequency for each forum.

fid.2 - Main forum - 30%
fid.15 - BotTalk forum - 100%

Also would be cool if you could make it post if it's name is said even with low frequency.

Thanks Birch :D

That would be great blackjack. :)

Say "Alice" and from that point she interacts.
I wonder if you could add ### in the signature to stop Alice in all the reply's and topics you make.

TheComputerGuy 01-25-2003 02:41 AM

wait...that file never created for me...

Ember 01-25-2003 07:31 AM

Ok, I will update to this version - hope it works this time :)

C.Birch 01-25-2003 08:11 AM

Quote:

Originally posted by TheComputerGuy
subs.inc file is made by alices botloader.php you most make sure the admin folder is set to 777 so it can make this file

C.Birch 01-25-2003 08:14 AM

Quote:

Originally posted by C.Birch


subs.inc should not be in the zip has the botloader.php makes it so i have just removed it from the zip file and reuploaded the zip in first post so no other person gets this error.


just got my install file wrong. i say to check the bots id number because sometimes the botloader file sets it to a other number then it should be, the bot id number has to be 0.


All times are GMT. The time now is 08:06 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.01460 seconds
  • Memory Usage 1,833KB
  • 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_php_printable
  • (11)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