vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vBTeachbot 2.1 (https://vborg.vbsupport.ru/showthread.php?t=48291)

Martin64 01-31-2003 05:33 PM

Just a little update:

You can post vB Code, IMG code, smilies and html, and it will reply (it'll work in the forums it's allowed only, of course) :)

hellsatan: great idea, I'm sure people would want this, I'll send you a pm. :)

NuclioN 01-31-2003 05:35 PM

Invalid SQL: INSERT INTO patterns (bot, word, ordera, parent, isend) VALUES ('0','WIE','2','1','0')
mysql error: Unknown column 'bot' in 'field list'

Tim Wheatley 01-31-2003 05:36 PM

ah! BOT is a table on the DB, all the other ones (word, ordera, parent, isend) are within patterns.

Bot didn't exist within my patterns table.

I have the latest version of the bot installed... Perhaps you need an 'ADD TABLE' in your install file?

Tim Wheatley 01-31-2003 05:41 PM

Ok, I added bot:

Code:

Database error in vBulletin Control Panel 2.2.9:

Invalid SQL: INSERT INTO patterns (bot, word, ordera, parent, isend) VALUES ('0','WHAT','2','1','0')
mysql error: Duplicate entry '0' for key 1

mysql error number: 1062

Date: Friday 31st of January 2003 08:34:01 PM
Script: http://forum.racesimcentral.com/admin/teachbot.php
Referer: http://forum.racesimcentral.com/admi...=teachbot5word

??

Martin64 01-31-2003 05:42 PM

From db.sql in the Tombot 1.1 release:

#
# Table structure for table `patterns`
#

CREATE TABLE patterns (
bot tinyint(3) unsigned NOT NULL default '0',
id int(11) NOT NULL auto_increment,
word varchar(255) default NULL,
ordera tinyint(4) NOT NULL default '0',
parent int(11) NOT NULL default '0',
isend tinyint(4) NOT NULL default '0',
PRIMARY KEY (id),
KEY wordparent (parent,word),
KEY botid (bot)
) TYPE=MyISAM;

Please verify that you have run that query, if not, add the missing columns.

NuclioN 01-31-2003 05:45 PM

This is what i can see:

CREATE TABLE patterns (
id int(11) NOT NULL default '0',
word varchar(255) default NULL,
ordera tinyint(4) NOT NULL default '0',
parent int(11) NOT NULL default '0',
isend tinyint(4) NOT NULL default '0',
PRIMARY KEY (id),
KEY id (id),
KEY wordparent (parent,word)
) TYPE=MyISAM;

Tim Wheatley 01-31-2003 05:48 PM

Sorted, thanks. :)

I only had bot missing though?? Anyway, works now. :)

Tim Wheatley 01-31-2003 05:50 PM

No it hasn't. Shouldn't bot be sending a value of 1, not 0?

Martin64 01-31-2003 06:13 PM

No, the bot value should be 0. :)

If it's not working though, I really recommend re-installing the tables (actually, reinstalling Tombot 1.1 completely).

You're using the db.sql that came with Tombot 1.0 (non working version). The db.sql that comes with Tombot 1.1 (first working release) is different.

Nuclion: I give you the same advice for the same reason.

NuclioN 01-31-2003 06:17 PM

Ok tnx, installing tables right now and the aiml files. Tombot 1.0 was working though but this hack is to handy to let it that way. ;)
Reporting back after install, stay tuned.


All times are GMT. The time now is 12:45 AM.

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.01197 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete