This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Tcl error in file - bad type

General support and discussion of Eggdrop bots.
Post Reply
s
sudobashnet
Voice
Posts: 1
Joined: Wed Sep 01, 2010 4:30 pm

Tcl error in file - bad type

Post by sudobashnet »

I've been all over "the googles" and nothing has helped me find even a trace to start following so here goes:

I've added the following test to eggdrop.conf

Code: Select all

# Test alert message
bind pubm - alert pubm:alert
proc pubm:alert {nick host handle chan text} {
  putserv "PRIVMSG #systems :Alert! "
}
When I try and load the bot I get the following error:
[15:27:18] Tcl error in file 'eggdrop.conf':
[15:27:18] bad type, should be one of: act, away, bcst, bot, chat, chjn, chof, chon, chpt, cron, ctcp, ctcr, dcc, disc, evnt, filt, flud, link, load, log, msg, msgm, nkch, notc, note, raw, time, unld, wall
while executing
"bind pubm - alert pubm:alert"
(file "eggdrop.conf" line 826)
[15:27:18] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

You havn't loaded the channels-module (yet), and thus the pubm binding is not available.
NML_375
t
thommey
Halfop
Posts: 76
Joined: Tue Apr 01, 2008 2:59 pm

Post by thommey »

Additionally, that bind will never trigger because you're not using the correct mask for it to match anything. See tcl-commands.doc for 'bind pubm' and make sure you understand what <mask> is matched against.
Post Reply