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 

Channels

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
dq
Voice


Joined: 03 Apr 2006
Posts: 32

PostPosted: Sun May 21, 2006 11:48 pm    Post subject: Channels Reply with quote

Howdy,

Anyone buck enough to traslate this into TCL?

It basically just spits out to the channel what channels the bot is currently in via .commands

Code:
on *:TEXT:.channels:#:{
set %i 1
set %a $null
while %i <= $chan(0) {
(1%a = %a $+ $chr(32) $+ $chan(%i)
inc %i }
msg $chan Channels Idling $calc( $chan(0)) channels ; %a ¬
}


GL and thanks in advance.
Back to top
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Mon May 22, 2006 12:10 am    Post subject: Reply with quote

This would fit beter in requests. This is not tcl that you asking for help with.
Back to top
View user's profile Send private message
whittinghamj
Op


Joined: 21 May 2006
Posts: 103

PostPosted: Mon May 22, 2006 12:11 am    Post subject: Reply with quote

This should work Very Happy

Code:
bind pub - !channels pub:channels

proc pub:channels {nick host hand chan arg} {
   set chans [chanlist]
   notice $nick "Channels: $chans"
   putcmdlog "<<$nick>> !$hand! channels"
}
Back to top
View user's profile Send private message
dq
Voice


Joined: 03 Apr 2006
Posts: 32

PostPosted: Mon May 22, 2006 1:38 am    Post subject: Reply with quote

Thanks for the replys guys,

whittinghamj, I get the error

Code:
[01:43] Tcl error [pub:channels]: wrong # args: should be "chanlist channel ?flags?"


Am I doing something wrong?
Back to top
View user's profile Send private message
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Mon May 22, 2006 1:43 am    Post subject: Reply with quote

the command is
Code:
channels


not "chanlist", i have no idea how you could even confuse the two Wink
Back to top
View user's profile Send private message
whittinghamj
Op


Joined: 21 May 2006
Posts: 103

PostPosted: Mon May 22, 2006 1:46 am    Post subject: Reply with quote

sorry - i been up for the past three days without sleep - its been stressful at work - server hacks

thanks for correcting me.
Back to top
View user's profile Send private message
dq
Voice


Joined: 03 Apr 2006
Posts: 32

PostPosted: Mon May 22, 2006 1:49 am    Post subject: Reply with quote

Thanks guys,

And sorry to hear about that whittinghamj :<
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 -> Script Requests 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