Thread: Major Additions - Talkerbot V2.2.3 (AI Posting Bot)
View Single Post
  #782  
Old 05-03-2007, 12:56 AM
^FalcoN_65^'s Avatar
^FalcoN_65^ ^FalcoN_65^ is offline
 
Join Date: Feb 2002
Location: Tennessee
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you are seeing this then you're probably frustrated. This message is a generic message given by the Bot when there is no pattern in the post he can recognize (IE he can't find your words in his database.

The bot's database is created by building tables in your database during the botloader.php execution. If you're like me then you got it to start loading and then it would stall out. Mine showed loading different .aiml files and then would stop.

If it completes properly it should take a LONG time.... maybe 30 minutes or so. And then after a successful load of all the .aiml files (which build his databse of patterns) the script will return a colored message on your screen and you wil be prompted to try the talkerbot out. If you didn't get this message, then your .aiml files did not completely load.

My problem was timeouts on my server at the host. I even tried breaking up the .aiml files into smaller chunks but still after a minute or so of transfer and maybe a few files, it would quit.

What I ended up doing was editing the botloader.php file and taking out instances of "deletebot" which were basically clearing the tables each time a load started. I thought I was smart at first and I'll simply delete the files it showed that it loaded and then rerun botloader.php......

This was when I found out it was clearing the tables each time it executed. After editing the botloader.php file I was able to do the above method (running, deleteing files, re-running) and the mySQL table named "pattern" finally started growing like it should.

Now my bot actually answers posts instead of saying he doesn't feel well or can't connect to his database.

I hesitate to actually post the modded botloader.php file because I am sure that I did a terrible hack job on it code wise. Also, when the botloader would run, I wondered how muchof the last file it showed actually loaded into the table. So what I did was to delete all but the last one it was working on, that way when I re-ran it , it would start on the last one it was doing (to be sure it gets it all) I believe that this method probably creates redundant entries in the patterns table, but as I said, thsi was a hack-job, quick fix.

Anyway, I exported the "patterns" table from mine into a .sql file from the server and will attempt to post it here. maybe those with "Dumb bot syndrome" can import it via phpmyadmin directly into your dbase and give him an instant education.

Again: this is to solve the problem where the bot responds, but never really says anything except he can't connect with his database. If there is interest, I will also post the modded botloader.php file that prevents it from clearing the tables on each load.

(just noticed max file size prevents me attaching the zipped sql file. I will upload it to my server and try linking it.)

Alright I think it uploaded OK. The zipped file is about 600K and it will unzip to about 6 Megs. It is in .SQL format and you should be able to import it into the "patterns" table. Click here to download.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01137 seconds
  • Memory Usage 1,771KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete