Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Talkerbot V2.2.3 (AI Posting Bot) Details »»
Talkerbot V2.2.3 (AI Posting Bot)
Version: 2.5.0, by eXtremeTim eXtremeTim is offline
Developer Last Online: Feb 2008 Show Printable Version Email this Page

Category: Major Additions - Version: 3.6.5 Rating:
Released: 09-11-2006 Last Update: 05-15-2007 Installs: 230
DB Changes Uses Plugins
Additional Files  
No support by the author.

Talker Bot Hack v2.5.0
Hack By: Tim (eXtremeTim) Yarbrough
Website: www.extremechatforums.com

What This Hack Does.

This hack add a userlike bot to your forums. You can set which forum he will post in and how often he will reply to poeples posts. He will try and build his replies off the text that they posted. This bot will learn overtime slowly from your users posts.

Whats new in 2.5.0?
Cleanup of the code to allow better support for php5 users.
Simplified the steps to get the bot working.
Improved the code in various spots.
Fixed sloppy coding issues that remained from the original version of the hack.

Whats new in 2.2.4?

Start of php 5 compatibility fixes
Query errors
ajax cosmetics issue (should be fixed now but if not please let me know)
quite a few minor random things.

Whats new in 2.2.3?

Fixed a few bugs (didnt fix the php 5.1 issues yet till i have time to make sure they dont have an undesired effect)
Added code to make bot show up online.
Made bot show up as last poster correctly.
Fixed table prefix issue

Whats new in 2.2.2?

Cleaned up code a bit.
Fixed <br> problem
Improved bots sanity
Fixed alot of stuff.

To Upgrade from 2.2.4:

Upload all files import the new product.

To upgrade from 2.2.3:

Reupload src folder from the alice dir, install the product file, and upload ewt_talkerbot.php.

To upgrade from 2.2.2:

Reupload the src folder from the alice dir and also re upload the ewt_talkerbot.php file. No changes were made to the product file.

To upgrade from 2.2.1:

Overwrite the current product
Overwrite ewt_talkerbot.php


To Upgrade From 2.2.0:

Overwrite the current product. Upload ewt_talkerbot.php


To Upgrade From A Previous Version:

Just follow the install steps in the files becuase yea there was no prior version for vb3.6 so you should have no file edits to redo.

This version is much cleaner overall then all the previous version. I have removed a good deal of the code in the core alice bot that used to cuase errors. I have moved all the control settings into the admincp. Plus many other things including a much cleaner ewt_talkerbot.php file then the original _talkerbot.php file.


About v3

Yes version 3 is being planned out yet again. I had it finished at one point only to lose it when my computer was stolen a while back. So now im planning even more stuff for version 3. I will post information about v3 later.


AIML File:

I need aiml files. If you know where to get them or have a bunch you can send me please contact me via pm on here so I can get the files. (Needing more for the base package and some to start playing with the aiml sharing features of v3 )


Demo: http://www.extremewebtech.com/forums...esting-grounds
User/Pass: test2323/test2323

Show Your Support

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

Comments
  #172  
Old 09-15-2006, 04:04 AM
SaintDog SaintDog is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 1,975
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Perhaps I am overlooking something or it is a mistake on my part, though when the bot replies, it does not update the last post information, so the post appears to be a mystery when viewing the last post column.

[Edit: When rebuilding the forum info, it shows the last post as correct, so the forum information isn't being rebuilt when a reply is being made]
Reply With Quote
  #173  
Old 09-15-2006, 06:22 AM
bigtime bigtime is offline
 
Join Date: Jun 2002
Location: Houston, Texas
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was running this on a former version of vbulletin. Since upgrading to vb 3.6.1 I too get absolutely no response from the bot. I've checked and double checked everything and am 99.9% sure I set it up correctly. My bots table is also empty.

Thanks,

Tim
Reply With Quote
  #174  
Old 09-15-2006, 07:17 AM
Meta's Avatar
Meta Meta is offline
 
Join Date: Nov 2001
Location: Germany (north)
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

(Did you upload the ewt_talkerbot.php?)


There is a nice Aiml-Editor downloadable over there:

http://www.gaito.de/content/aiml/default.asp

But it's still beta ... and likes to crash sometimes. It is good for testing aiml-files if they are valid and for testing responses.
Reply With Quote
  #175  
Old 09-15-2006, 02:10 PM
SaintDog SaintDog is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 1,975
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@bigtime: My installation is on 3.6.1 and it is working just fine, however, as stated previously, the last post is not "indexed" so to speak, rather, it's not updated when a post is made by the bot.

Run over the installation instructions once more and check to see if you missed anything.
Reply With Quote
  #176  
Old 09-15-2006, 02:40 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just had this....

A members posted this "what a shame, Schumacher has been a true great, hope he wins the championship to round off a truly wonderful career."

then the bot posted this

"shame, Schumacher has been a true great, hope he wins the championship to round off a truly wonderful career is a shame, Schumacher has been a true great, hope he wins the championship to round off a truly wonderful career."

Any thoughts on this please, would rather not have a parrot!! lol
Reply With Quote
  #177  
Old 09-15-2006, 03:16 PM
KW802's Avatar
KW802 KW802 is offline
 
Join Date: Jul 2003
Location: A galaxy far, far away...
Posts: 1,450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Meta
(Did you upload the ewt_talkerbot.php?)


There is a nice Aiml-Editor downloadable over there:

http://www.gaito.de/content/aiml/default.asp

But it's still beta ... and likes to crash sometimes. It is good for testing aiml-files if they are valid and for testing responses.
Thanks for the link. I had come across that before in my searching for some AIML files but I did not realize that the beta was a free download.

New weekend toy to play with.
Reply With Quote
  #178  
Old 09-15-2006, 05:55 PM
caper caper is offline
 
Join Date: Jan 2006
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

I can't seem to get the," Run http://www.satreactor.com/forum/alic.../botloader.php this can take a good 30 min because it runs 300,000 queries", to work.

All I get is,"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@satreactor.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

The Talkerbot does post already but only says,"Im sorry but I was not able to form a reply right now".

My setup in dbprefs.php

$rootdir= "/usr/home/satreact/domains/satreactor.com/public_html/forum/alice/aiml/";

require('/usr/home/satreact/domains/satreactor.com/public_html/forum/includes/config.php');

$DB_HOST=$config['MasterServer']['servername'];
$DB_UNAME=$config['MasterServer']['username'];
$DB_PWORD=$config['MasterServer']['password'];
$DB_DB=$config['Database']['dbname'];


Thanks for you help and support...
Reply With Quote
  #179  
Old 09-15-2006, 06:57 PM
eXtremeTim eXtremeTim is offline
 
Join Date: Jun 2002
Location: eXtremewebtech.com
Posts: 1,201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by caper
Hello,

I can't seem to get the," Run http://www.satreactor.com/forum/alic.../botloader.php this can take a good 30 min because it runs 300,000 queries", to work.

All I get is,"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@satreactor.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

The Talkerbot does post already but only says,"Im sorry but I was not able to form a reply right now".

My setup in dbprefs.php

$rootdir= "/usr/home/satreact/domains/satreactor.com/public_html/forum/alice/aiml/";

require('/usr/home/satreact/domains/satreactor.com/public_html/forum/includes/config.php');

$DB_HOST=$config['MasterServer']['servername'];
$DB_UNAME=$config['MasterServer']['username'];
$DB_PWORD=$config['MasterServer']['password'];
$DB_DB=$config['Database']['dbname'];


Thanks for you help and support...
Internal server error is proble cuased by your server not allowing public 777 chmod. So chmod only subs.inc in the admin dir and you should be fine.
Reply With Quote
  #180  
Old 09-15-2006, 07:34 PM
zethon zethon is offline
 
Join Date: May 2005
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've gone ahead and added code to the ewt_talkerbot.php file that will (1) update the forum counters, (2) put the bot into the "who's online" list and update the bot's user info (3) fix the double quoting

Underneath of
PHP Code:
define ("MY_VERSION""TALKERBOT v2.2 FOR VBULLETIN 3.5 and 3.6 by eXtremeTim"); 
add the following function:

PHP Code:
function update_bot_info()
{
    global 
$vbulletin;
    
    require_once(
'./global.php');
    require_once(
'./includes/functions.php');
    
$userinfo fetch_userinfo($vbulletin->options['ewt_talkerbot_botuid']);

    
// if the bot is already in the session table, update it, otherwise add it        
    
$vbulletin->db->query_write("UPDATE ".TABLE_PREFIX."session SET lastactivity = '"TIMENOW ."' WHERE (userid = '".$vbulletin->options['ewt_talkerbot_botuid']."')");
    if (
$vbulletin->db->affected_rows() == 0)
    {
        
$ip rand(25,160).".".rand(30,250).".".rand(3,250).".".rand(10,250);
        
$vbulletin->db->query_write("INSERT INTO ".TABLE_PREFIX."session (userid,lastactivity,host) VALUE ('".$vbulletin->options['ewt_talkerbot_botuid']."',".TIMENOW.",'$ip')");
    }

    
$userdata =& datamanager_init('User'$vbulletinERRTYPE_STANDARD);
    
$userdata->set_existing($userinfo);
    
$userdata->set('lastactivity'TIMENOW);
    
$userdata->set('lastvisit'TIMENOW 1);
    
$userdata->save();


Then towards the bottom there are two different if staments that look like:
PHP Code:
                    if (!$dataman->errors// should not occur
                    
{
                        
$dataman->save();
                                            } 
And make them both look like as follows:

PHP Code:
                    if (!$dataman->errors// should not occur
                    
{
                        
$dataman->save();
                        require_once(
'./includes/functions_databuild.php'); 
                        
build_forum_counters($foruminfo["forumid"]);
                        
update_bot_info();
                    } 
To fix the double-quoting, find two lines that look like:
PHP Code:
        if ($vbulletin->options['ewt_talkerbot_quotemsg'] == "1")
        { 

And right below it add the follow code:
PHP Code:
        $post['message'] = strip_quotes($post['message']); 
Reply With Quote
  #181  
Old 09-15-2006, 08:24 PM
caper caper is offline
 
Join Date: Jan 2006
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by eXtremeTim
Internal server error is proble cuased by your server not allowing public 777 chmod. So chmod only subs.inc in the admin dir and you should be fine.
Thank you that worked...
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 09:53 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.05735 seconds
  • Memory Usage 2,349KB
  • 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
  • (6)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)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
  • (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