Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

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
  #352  
Old 01-28-2003, 05:25 AM
scsa20's Avatar
scsa20 scsa20 is offline
 
Join Date: Mar 2002
Location: Mars
Posts: 458
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I keep getting the following error when I post a reply or a new thread:

Quote:
Warning: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/scsa20/public_html/forums/tomstalkerbot.php on line 46

Warning: fopen("http://www.simon-soft/forums/alice/src/talk.php?input=tombot+is+kwel", "r") - Bad file descriptor in /home/scsa20/public_html/forums/tomstalkerbot.php on line 46

Warning: fread(): supplied argument is not a valid File-Handle resource in /home/scsa20/public_html/forums/tomstalkerbot.php on line 47

Warning: fclose(): supplied argument is not a valid File-Handle resource in /home/scsa20/public_html/forums/tomstalkerbot.php on line 48
how do I fix this??
Reply With Quote
  #353  
Old 01-28-2003, 07:44 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

http://www.kousetsu.net/forums/showt...0856#post30856

LOL!!
Reply With Quote
  #354  
Old 01-28-2003, 07:54 AM
bandersen's Avatar
bandersen bandersen is offline
 
Join Date: Feb 2002
Location: Oslo
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default



So cool Anime-loo! I must get "mine" to work asap!
Reply With Quote
  #355  
Old 01-28-2003, 08:34 AM
Radgam Radgam is offline
 
Join Date: Jan 2003
Location: Scotland! :)
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by JBMoney
Radgam - It's working a lot better for me without these last two lines:

$response = preg_replace("/(\?|\.|!)(\w)/" , " $1", $response );
$response = preg_replace("/(\w)\s+(\w|\?|\.|!)/","$1 $2",$response);

They seem to be causing all the punctuation related problems I mentioned.
that's weird It's just a basic find/replace, it shouldn't be cutting off any characters... I tested it throughly on my localhost before posting as well :dead:

Could be the different OS i guess. The problem i found (just for example) is when you say "my favourite movie is lord of the rings" and you get a ton of white space.

I'll test the code a bit more and let you know what i find.

edit: oooo, i very much appologise for my mistake in the original post. I forgot to include the $2 variable which contains the word in the find/replace

Here is the updated version, please let me know if it works :nervous: (and yes, i know it's quite a few searches, but they need to be seperate to function properly :/ - but it has cleaned the output very well on my board (and is based on heavy testing!!)

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

After that line add:
	
// Clean Output
$response = str_replace('<br>' , '', $response );
$response = str_replace('</br>' , '', $response );
$response = str_replace(', .' , '.', $response );
$response = preg_replace("/(\?|\.|!)(\w)/","$1 $2",$response);
$response = preg_replace("/(\w|,)\s+(\w|\?|\.|!)/","$1 $2",$response);
$response = preg_replace("/\n\s+/","\n",$response);
Reply With Quote
  #356  
Old 01-28-2003, 01:33 PM
Mickie D Mickie D is offline
 
Join Date: Jun 2002
Posts: 430
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah this hack looks very good

just wondering if i can only have a forum where he can answer in ???

like a forum called "ask the bot"
Reply With Quote
  #357  
Old 01-28-2003, 01:34 PM
Radgam Radgam is offline
 
Join Date: Jan 2003
Location: Scotland! :)
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that's how the hack currently works You can have the bot enabled in one selected forum.
Reply With Quote
  #358  
Old 01-28-2003, 02:48 PM
Banana Banana is offline
 
Join Date: Oct 2002
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, just did the install - all appeared OK. Read 24 pages of this thread (phew!). Everything appears fine BUT I have no entries in the "bots" table. The install says "Login to phpmyadmin and check in the 'bots' table that the bot id is 0 you find that the table 'bot's the id number in there needs editing to 0 from 1 in some cases" - so what is the row that's missing? thanks!
Reply With Quote
  #359  
Old 01-28-2003, 03:35 PM
fury's Avatar
fury fury is offline
 
Join Date: Oct 2001
Location: Indiana
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, it deletes all current rows resulting from the aiml imports? That would probably explain why it only has 3000 some categories.
Reply With Quote
  #360  
Old 01-28-2003, 03:37 PM
Radgam Radgam is offline
 
Join Date: Jan 2003
Location: Scotland! :)
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

could someone who seems to be understanding all this AIML stuff better than i am explain what i should do with this?

<category>
<pattern>I LIVE IN *</pattern>
<template>What is <set name="it"><set name="topic">living in <person/></set></set> like living in
<set name="location"><person/></set>?
<think><set name="it"><set name="topic"><person/></set></set></think>
</template></category>

Now, that's the cause of the AI problem on my forum where i say "I live in placename" it responds "what is living in placename like living in placename?"
Reply With Quote
  #361  
Old 01-28-2003, 03:41 PM
Martin64's Avatar
Martin64 Martin64 is offline
 
Join Date: Nov 2001
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by fury
Hmm, it deletes all current rows resulting from the aiml imports? That would probably explain why it only has 3000 some categories.
Indeed it does, but if you remove the line in botloader.php I posted about above it will not delete old rows, it will only import new aiml if there is.
Reply With Quote
Reply


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 10:11 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.05564 seconds
  • Memory Usage 2,313KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_code
  • (3)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
  • (2)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
  • (11)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_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