The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Talkerbot V2.2.3 (AI Posting Bot) Details »» | |||||||||||||||||||||||||
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
|
Comments |
#642
|
||||
|
||||
Glad to hear
|
#643
|
||||
|
||||
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? |
#644
|
|||
|
|||
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 |
#645
|
||||
|
||||
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?
|
#646
|
||||
|
||||
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. |
#647
|
||||
|
||||
Why not use sed and awk to do some find and replace?
|
#648
|
||||
|
||||
Quote:
|
#649
|
||||
|
||||
Quote:
Edited: Quote:
Quote:
|
#650
|
||||
|
||||
Ok but these ê é etc. are all over the place. How to make these aiml files xml compliant?
|
#651
|
||||
|
||||
Quote:
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:
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&doit=done&BabelFishFrontPage=yes&bblType=urltext&urltext=" + java.net.URLEncoder.encode(word) + "&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 = "<textarea rows=\"3\" wrap=virtual cols=\"56\" name=\"q\">"; 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&doit=done&BabelFishFrontPage=yes&bblType=urltext&urltext=" + java.net.URLEncoder.encode(word) + "&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 = "<textarea rows=\"3\" wrap=virtual cols=\"56\" name=\"q\">"; 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&doit=done&BabelFishFrontPage=yes&bblType=urltext&urltext=" + java.net.URLEncoder.encode(word) + "&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 = "<textarea rows=\"3\" wrap=virtual cols=\"56\" name=\"q\">"; 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&doit=done&BabelFishFrontPage=yes&bblType=urltext&urltext=" + java.net.URLEncoder.encode(word) + "&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 = "<textarea rows=\"3\" wrap=virtual cols=\"56\" name=\"q\">"; 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&doit=done&BabelFishFrontPage=yes&bblType=urltext&urltext=" + java.net.URLEncoder.encode(word) + "&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 = "<textarea rows=\"3\" wrap=virtual cols=\"56\" name=\"q\">"; 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> 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... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|