egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Tcl error in file - bad type

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
sudobashnet
Voice


Joined: 01 Sep 2010
Posts: 1

PostPosted: Wed Sep 01, 2010 4:38 pm    Post subject: Tcl error in file - bad type Reply with quote

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:
# 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:
Quote:
[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)
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Wed Sep 01, 2010 4:53 pm    Post subject: Reply with quote

You havn't loaded the channels-module (yet), and thus the pubm binding is not available.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
thommey
Halfop


Joined: 01 Apr 2008
Posts: 73

PostPosted: Thu Sep 02, 2010 4:42 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber