Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
TomBot v1.1 vB AI User Bot Details »»
TomBot v1.1 vB AI User Bot
Version: 1.00, by C.Birch C.Birch is offline
Developer Last Online: Jan 2016 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 01-22-2003 Last Update: Never Installs: 119
 
No support by the author.

Hi after reading the forums i have seen many people after a hack like this so here it is.

This has been installed and testing on a busy live server and it worked fine thats why im posting it in here right away.

I can not hack that much if theres a prob but i try my best to, i also add this is my first time so i have tryed my very best to make the install file easy to follow.

all the files you need are in the zip file just unzip it to your pc keeping the lay out how it is in the zip file and then following the install text file.

What does this hack do?

Basicy it add's a chat bot to a forum on your board that will reply to users posts.

if you wish the bot not to reply to a post inside of the forum its set up to reply in just add ### anywhere in your post and it will stop the bot from replying.

You may give the bot its own profile on the board eg av and sign to make it fit in abit better.

The bot will also learn things has it gets used more but if it gets to a point where it trys taking over the wrold please dont sue me.

=======
Add On's
=======

[vB v2.2.8] vBTeachbot 1.0: Click Here By Martin64

=====
Update
=====

Added more aiml files for clean install's so the bot knows more information from the start.

Bot also recall's your name now

Updated the Zip File Below
http://www.ultimatepop-network.com/TomBot v1.2.zip

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #582  
Old 03-04-2003, 08:11 AM
insanctus's Avatar
insanctus insanctus is offline
 
Join Date: Feb 2003
Location: Michigan
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I got mine to do it... that was to easy... I hope it helps.

In tomstalkerbot.php

Find
PHP Code:
if ($ttb==AND rand(1,100)<=$ttb_weighting AND $forumid==$ttb_forumid AND $bbuserinfo[userid]!=$ttb_memberid) {gottb();}; 
and replace it with

PHP Code:
if ($ttb==AND rand(1,100)<=$ttb_weighting AND  stristr($message,"$ttb_username") AND $bbuserinfo[userid]!=$ttb_memberid) {gottb();}; 
Now it searched for its name in a post and reacts on it. Name can be any place in that post.

Such as "hello bot name how are you"

it will answer

If you still want it to only one thread. Then replace the above with .

PHP Code:
if ($ttb==AND rand(1,100)<=$ttb_weighting AND  stristr($message,"$ttb_username") AND $forumid==$ttb_forumid AND $bbuserinfo[userid]!=$ttb_memberid) {gottb();}; 
Reply With Quote
  #583  
Old 03-04-2003, 08:49 AM
insanctus's Avatar
insanctus insanctus is offline
 
Join Date: Feb 2003
Location: Michigan
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I am trying to work on it so it only looks at the beginning

PHP Code:
 // END CONFIG
$usernamelen strlen($ttb_username);
if (
$ttb==AND rand(1,100)<=$ttb_weighting AND  $ttb_username=substr($message0$usernamelen) AND $bbuserinfo[userid]!=$ttb_memberid) {gottb();};
$message=substr_replace($message""0$usernamelen); 
For some reason it is not working.

Like I said I am new to php but prior one works fine. Just this one does not seem to.

If you can figure it out please post it.
Reply With Quote
  #584  
Old 03-04-2003, 08:56 AM
Automated Automated is offline
 
Join Date: Sep 2002
Posts: 266
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well thats a great addition, but it didnt work for me I am not sur if that is because i have the Multi forum version of tomstalkerbot.php but could you have a look at this please (here it is https://vborg.vbsupport.ru/showthrea...353#post345353 )

I would also release this as a stand alone hack it is amazing.

Matthew
Reply With Quote
  #585  
Old 03-04-2003, 02:24 PM
Jethro
Guest
 
Posts: n/a
Default

Okay trying to get this running live now, the infamous only posts smilies problem for us as well. Tracking through the problems encountered so far.

We get this when we try to run the botloader

Quote:
Loading startup.xml

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /home/virtual/site34/fst/var/www/html/forums/alice/src/admin/botloaderfuncs.php on line 563
Loading data aiml file: W1.aiml
Waiting on the loader to finish to see if anything is created
Reply With Quote
  #586  
Old 03-04-2003, 02:41 PM
Jethro
Guest
 
Posts: n/a
Default

Quote:
Originally posted by C.Birch
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
Aha knew that was our problem. Okay to sum up where we are at in both testing and live

1. Testing on win2k box, how the heck are we meant to run the sql file (has no one attempted this on win2k yet). Okay going to have a stab in the dark and try and run each command from the sql file manually.

2. Live database, Cannot set time in safe mode. Am presuming this is a setting we need to get our host to have a look at.

Well that's where we are at :dunno:
Reply With Quote
  #587  
Old 03-04-2003, 04:07 PM
Jethro
Guest
 
Posts: n/a
Default

All righty!!!!!!!!!!! Problem 1 fixed, AI running on our Win 2k test box :thumb:

For anyone else toiling with this sort of setup. Open the sql file in notepad, drop to a command window and go into your MySQL bin directory and get a MySQL session under way.

use databasename

Basically type in each of the commands from the MySQL manually

Probably a faster way, but what the heck it will get you up and running. You could also probably knock up a pretty quick php script to do it for you

See attached pic for our first conversation.
Reply With Quote
  #588  
Old 03-04-2003, 04:20 PM
Automated Automated is offline
 
Join Date: Sep 2002
Posts: 266
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am Working on a HUGE AIML addition to the bot, but having a bit of a problem with the PHP code, so if anyone would like to assist please PM me.

Thanks
Matthew
Reply With Quote
  #589  
Old 03-06-2003, 05:03 AM
insanctus's Avatar
insanctus insanctus is offline
 
Join Date: Feb 2003
Location: Michigan
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I am back . Lost my isp for about 48 hours.. Talk about losing ones mind .

Any how I plan to get back to work on my hack hack. Hopefully in next day I will be able to parse out the bot name when said in beginning of a post.

Reply With Quote
  #590  
Old 03-06-2003, 04:01 PM
Automated Automated is offline
 
Join Date: Sep 2002
Posts: 266
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Welcome Back!

Is anyone interested in helping me out? I have the PHP page but need someone who can tell me what is wrong with it. Please PM me.

Thanks
Matthew
Reply With Quote
  #591  
Old 03-06-2003, 04:12 PM
insanctus's Avatar
insanctus insanctus is offline
 
Join Date: Feb 2003
Location: Michigan
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What page?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:07 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06270 seconds
  • Memory Usage 2,317KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (8)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete