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
  #642  
Old 01-26-2007, 03:53 PM
powerbook's Avatar
powerbook powerbook is offline
 
Join Date: Jul 2006
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad to hear
Reply With Quote
  #643  
Old 01-27-2007, 01:27 PM
NuclioN's Avatar
NuclioN NuclioN is offline
 
Join Date: Aug 2002
Posts: 955
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Loading data aiml file: C.aiml
XML error: not well-formed (invalid token) at line 36

More XML errors when you skip C.aiml, all have invalid Tokens. How to avoid these?
Reply With Quote
  #644  
Old 01-27-2007, 11:51 PM
BobbyBig BobbyBig is offline
 
Join Date: Mar 2006
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If someone is interested how the Talker Bot is running with the German version, you can take a look here: http://www.ingamers.de/ingamers-fore...n-bot-521.html

regards,
Bobby
Reply With Quote
  #645  
Old 01-30-2007, 01:55 PM
NuclioN's Avatar
NuclioN NuclioN is offline
 
Join Date: Aug 2002
Posts: 955
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NuclioN View Post
Loading data aiml file: C.aiml
XML error: not well-formed (invalid token) at line 36

More XML errors when you skip C.aiml, all have invalid Tokens. How to avoid these?
Up! The supportsite is offline for more then a week. These 'invalid token' errors show up by all words or phrases that have ?, ?, ? etc. in it. It is nearly impossible to scan all the aiml files and taken them out or replace them. Is it a parsing problem?
Reply With Quote
  #646  
Old 02-02-2007, 03:30 PM
illkeyone's Avatar
illkeyone illkeyone is offline
 
Join Date: Oct 2006
Location: Ankara / Turkey
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've installed the product. Then, I've opened
forums/alice/src/admin/dbprefs.php
to edit. But here, I confused. What should I write?

My config.php file is under;
/home/ibxnilk/public_html/mydomain/forum/includes/config.php
And my aiml files and the startup.xml are under;
/home/ibxnilk/public_html/mydomain/forum/alice/aiml/
so, should I write these? Or add anything else?

After I tried lots of things, I got the same error from the page
mydomain/forum/alice/src/admin/botloader.php
--->
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, blabla @ mydomain.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.


May you please help me?
Thanks.
.ilke.
Reply With Quote
  #647  
Old 02-03-2007, 04:55 PM
blogtorank's Avatar
blogtorank blogtorank is offline
 
Join Date: Jan 2006
Posts: 450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NuclioN View Post
Up! The supportsite is offline for more then a week. These 'invalid token' errors show up by all words or phrases that have ?, ?, ? etc. in it. It is nearly impossible to scan all the aiml files and taken them out or replace them. Is it a parsing problem?
Why not use sed and awk to do some find and replace?
Reply With Quote
  #648  
Old 02-03-2007, 04:59 PM
blogtorank's Avatar
blogtorank blogtorank is offline
 
Join Date: Jan 2006
Posts: 450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by illkeyone View Post
I've installed the product. Then, I've opened
forums/alice/src/admin/dbprefs.php
to edit. But here, I confused. What should I write?

My config.php file is under;
/home/ibxnilk/public_html/mydomain/forum/includes/config.php
And my aiml files and the startup.xml are under;
/home/ibxnilk/public_html/mydomain/forum/alice/aiml/
so, should I write these? Or add anything else?

After I tried lots of things, I got the same error from the page
mydomain/forum/alice/src/admin/botloader.php
--->
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, blabla @ mydomain.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.


May you please help me?
Thanks.
.ilke.
Seems to be a permission issue there on your webserver... Check your error_log to see what's causing this... All systems differ so I can't tell you where to look...
Reply With Quote
  #649  
Old 02-03-2007, 05:01 PM
blogtorank's Avatar
blogtorank blogtorank is offline
 
Join Date: Jan 2006
Posts: 450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NuclioN View Post
Loading data aiml file: C.aiml
XML error: not well-formed (invalid token) at line 36

More XML errors when you skip C.aiml, all have invalid Tokens. How to avoid these?
Make it XML compliant... Try posting the line 36 here or the whole file in quotes so I can see what you are talking about...

Edited:

Quote:
<template>Le sujet est vaste, le sujet ne peut ?tre r?sum? par un mot.
This is my line 36 in the C.aiml and seeing that the foreign letters
Quote:
? ?
are not xml compliant
Reply With Quote
  #650  
Old 02-03-2007, 07:38 PM
NuclioN's Avatar
NuclioN NuclioN is offline
 
Join Date: Aug 2002
Posts: 955
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok but these ê é etc. are all over the place. How to make these aiml files xml compliant?
Reply With Quote
  #651  
Old 02-03-2007, 09:05 PM
blogtorank's Avatar
blogtorank blogtorank is offline
 
Join Date: Jan 2006
Posts: 450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NuclioN View Post
Ok but these ? ? etc. are all over the place. How to make these aiml files xml compliant?
Basically do a find and replace of all of these not xml compliant characters... As you know xml compliance is a big benefactor on the web especially with how and what to display in xml for an example the ones above you would find their soundings and put them in plain English format.

Then one day, I found the extras on Tim's forums (The coder of this program) and found their translation aiml file "dev-translation.aiml" it had massive errors in it with all the
Quote:
ampersands "&"
and etc.. so I had to go through and clean it up for xml compliant:

Hence the
HTML Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
HTML Code:
<?xml version="1.0" encoding="ISO-8859-1"?>

<aiml version="1.0">

<!-- Free software (c) 2001 ALICE AI Foundation -->
<!-- This program is open source code released under -->
<!-- the terms of the GNU General Public License -->
<!-- as published by the Free Software Foundation. -->

<meta name="language" content="en"/>

<category>
<pattern>SAY * TO ME IN SPANISH</pattern>
<template>
<srai>SAY <star/> IN SPANISH</srai>
</template>
</category>

<category>
<pattern>SAY * TO ME IN GERMAN</pattern>
<template>
<srai>SAY <star/> IN GERMAN</srai>
</template>
</category>

<category>
<pattern>SAY * TO ME IN FRENCH</pattern>
<template>
<srai>SAY <star/> IN FRENCH</srai>
</template>
</category>

<category>
<pattern>SAY * TO ME IN ITALIAN</pattern>
<template>
<srai>SAY <star/> IN ITALIAN</srai>
</template>
</category>

<category>
<pattern>SAY * TO ME IN JAPANESE</pattern>
<template>
<srai>SAY <star/> IN JAPANESE</srai>
</template>
</category>

<category>
<pattern>WHAT IS SPANISH FOR *</pattern>
<template>
<srai>SAY <star/> IN SPANISH</srai>
</template>
</category>

<category>
<pattern>WHAT IS GERMAN FOR *</pattern>
<template>
<srai>SAY <star/> IN GERMAN</srai>
</template>
</category>

<category>
<pattern>WHAT IS FRENCH FOR *</pattern>
<template>
<srai>SAY <star/> IN FRENCH</srai>
</template>
</category>

<category>
<pattern>WHAT IS ITALIAN FOR *</pattern>
<template>
<srai>SAY <star/> IN ITALIAN</srai>
</template>
</category>

<category>
<pattern>WHAT IS JAPANESE FOR *</pattern>
<template>
<srai>SAY <star/> IN JAPANESE</srai>
</template>
</category>

<category>
<pattern>SAY * IN SPANISH</pattern>
<template>
<javascript>
     var word = '<star/>';
     var language = 'es'
     var _url = java.net.URL;
     var _connection = java.net.URLConnection;
     var _in = java.io.BufferedReader;
     var _inReader = java.io.InputStreamReader;
     var _line = java.lang.String;
     var _inputLine = java.lang.String;
     var _reply = "Sorry, I can't speak that language.";
     
     url = new java.net.URL("http://babel.altavista.com/translate.dyn?enc=utf8&amp;doit=done&amp;BabelFishFrontPage=yes&amp;bblType=urltext&amp;urltext=" + java.net.URLEncoder.encode(word) + "&amp;lp=en_" + language);
     connection = url.openConnection();
     
     _inReader = new java.io.InputStreamReader(connection.getInputStream());
     _in = new java.io.BufferedReader(_inReader);
     _inputLine = new java.lang.String();
     _reply = new java.lang.String();
     var _line = 0;
     var _match = "&lt;textarea rows=\"3\" wrap=virtual cols=\"56\" name=\"q\"&gt;";
     while ((_inputLine = _in.readLine()) != null) {
          _line++;
          if (_inputLine.trim().startsWith(_match)) {
               _reply = _inputLine.substring(_match.length + 4);
               break;
          }
     }
     
     _in.close();         
     _reply;

</javascript>
</template>
</category>

<category>
<pattern>SAY * IN GERMAN</pattern>
<template>
<javascript>
     var word = '<star/>';
     var language = 'de'
     var _url = java.net.URL;
     var _connection = java.net.URLConnection;
     var _in = java.io.BufferedReader;
     var _inReader = java.io.InputStreamReader;
     var _line = java.lang.String;
     var _inputLine = java.lang.String;
     var _reply = "Sorry, I can't speak that language.";
     
     url = new java.net.URL("http://babel.altavista.com/translate.dyn?enc=utf8&amp;doit=done&amp;BabelFishFrontPage=yes&amp;bblType=urltext&amp;urltext=" + java.net.URLEncoder.encode(word) + "&amp;lp=en_" + language);
     connection = url.openConnection();
     
     _inReader = new java.io.InputStreamReader(connection.getInputStream());
     _in = new java.io.BufferedReader(_inReader);
     _inputLine = new java.lang.String();
     _reply = new java.lang.String();
     var _line = 0;
     var _match = "&lt;textarea rows=\"3\" wrap=virtual cols=\"56\" name=\"q\"&gt;";
     while ((_inputLine = _in.readLine()) != null) {
          _line++;
          if (_inputLine.trim().startsWith(_match)) {
               _reply = _inputLine.substring(_match.length + 4);
               break;
          }
     }
     
     _in.close();         
     _reply;

</javascript>
</template>
</category>

<category>
<pattern>SAY * IN FRENCH</pattern>
<template>
<javascript>
     var word = '<star/>';
     var language = 'fr'
     var _url = java.net.URL;
     var _connection = java.net.URLConnection;
     var _in = java.io.BufferedReader;
     var _inReader = java.io.InputStreamReader;
     var _line = java.lang.String;
     var _inputLine = java.lang.String;
     var _reply = "Sorry, I can't speak that language.";
     
     url = new java.net.URL("http://babel.altavista.com/translate.dyn?enc=utf8&amp;doit=done&amp;BabelFishFrontPage=yes&amp;bblType=urltext&amp;urltext=" + java.net.URLEncoder.encode(word) + "&amp;lp=en_" + language);
     connection = url.openConnection();
     
     _inReader = new java.io.InputStreamReader(connection.getInputStream());
     _in = new java.io.BufferedReader(_inReader);
     _inputLine = new java.lang.String();
     _reply = new java.lang.String();
     var _line = 0;
     var _match = "&lt;textarea rows=\"3\" wrap=virtual cols=\"56\" name=\"q\"&gt;";
     while ((_inputLine = _in.readLine()) != null) {
          _line++;
          if (_inputLine.trim().startsWith(_match)) {
               _reply = _inputLine.substring(_match.length + 4);
               break;
          }
     }
     
     _in.close();         
     _reply;

</javascript>
</template>
</category>

<category>
<pattern>SAY * IN ITALIAN</pattern>
<template>
<javascript>
     var word = '<star/>';
     var language = 'it'
     var _url = java.net.URL;
     var _connection = java.net.URLConnection;
     var _in = java.io.BufferedReader;
     var _inReader = java.io.InputStreamReader;
     var _line = java.lang.String;
     var _inputLine = java.lang.String;
     var _reply = "Sorry, I can't speak that language.";
     
     url = new java.net.URL("http://babel.altavista.com/translate.dyn?enc=utf8&amp;doit=done&amp;BabelFishFrontPage=yes&amp;bblType=urltext&amp;urltext=" + java.net.URLEncoder.encode(word) + "&amp;lp=en_" +language);
     connection = url.openConnection();
     
     _inReader = new java.io.InputStreamReader(connection.getInputStream());
     _in = new java.io.BufferedReader(_inReader);
     _inputLine = new java.lang.String();
     _reply = new java.lang.String();
     var _line = 0;
     var _match = "&lt;textarea rows=\"3\" wrap=virtual cols=\"56\" name=\"q\"&gt;";
     while ((_inputLine = _in.readLine()) != null) {
          _line++;
          if (_inputLine.trim().startsWith(_match)) {
               _reply = _inputLine.substring(_match.length + 4);
               break;
          }
     }
     
     _in.close();         
     _reply;

</javascript>
</template>
</category>

<category>
<pattern>SAY * IN JAPANESE</pattern>
<template>
<javascript>
     var word = '<star/>';
     var language = 'ja'
     var _url = java.net.URL;
     var _connection = java.net.URLConnection;
     var _in = java.io.BufferedReader;
     var _inReader = java.io.InputStreamReader;
     var _line = java.lang.String;
     var _inputLine = java.lang.String;
     var _reply = "Sorry, I can't speak that language.";
     
     url = new java.net.URL("http://babel.altavista.com/translate.dyn?enc=utf8&amp;doit=done&amp;BabelFishFrontPage=yes&amp;bblType=urltext&amp;urltext=" + java.net.URLEncoder.encode(word) + "&amp;lp=en_" + language);
     connection = url.openConnection();
     
     _inReader = new java.io.InputStreamReader(connection.getInputStream());
     _in = new java.io.BufferedReader(_inReader);
     _inputLine = new java.lang.String();
     _reply = new java.lang.String();
     var _line = 0;
     var _match = "&lt;textarea rows=\"3\" wrap=virtual cols=\"56\" name=\"q\"&gt;";
     while ((_inputLine = _in.readLine()) != null) {
          _line++;
          if (_inputLine.trim().startsWith(_match)) {
               _reply = _inputLine.substring(_match.length + 4);
               break;
          }
     }
     
     _in.close();         
     _reply;

</javascript>
</template>
</category>

</aiml>
I'm not going to teach any "how to xml complaint 101" , Just wanted to give you a heads-up that you want everything in plain ole english terms if you are using the encoding ISO-8859-1 in your xml (aiml) files, it's relatively simple if you know html and also just convert all the others with find and replace also you can go a faster route using any *nix flavor and know how to use sed and awk, which is faster...

As you see above in my example I cleaned that whole file up to become xml compliant to work using the ISO-8859-1!

Hope this helps...
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 07:45 PM.


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.06154 seconds
  • Memory Usage 2,370KB
  • 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
  • (2)bbcode_html
  • (8)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