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 

!ucount

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


Joined: 22 Jun 2008
Posts: 19

PostPosted: Fri Aug 29, 2008 6:13 am    Post subject: !ucount Reply with quote

Is there an function in eggdrop for getting the following output:

Code:
There are currently X people in #thischannel
Back to top
View user's profile Send private message
jeroen_005
Voice


Joined: 22 Jun 2008
Posts: 19

PostPosted: Fri Aug 29, 2008 12:35 pm    Post subject: Reply with quote

Code:
bind pub - !ucount ucount

proc ucount { nick uhost hand chan text } {
   set current_usr_count [llength [chanlist $channel]]
   putserv "PRIVMSG $channel :Er zijn momenteel \002$current_usr_count\002 gebruikers aanwezig in \002$channel\002."
}

putlog "Module loaded: SCRIPT: Ucount"


Okey I just tryed something maybe it is very nub or completly incorrect. But this doesn't work :'(
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Aug 29, 2008 12:38 pm    Post subject: Reply with quote

Apart from being abit bloated (my personal opinion), I can't see any reason for that code not doing what you asked for. Do you get any error messages or such when loading or running the script?
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
jeroen_005
Voice


Joined: 22 Jun 2008
Posts: 19

PostPosted: Fri Aug 29, 2008 1:18 pm    Post subject: Reply with quote

nops i don't get any error when loading or running. when i type !ucount in my channel the bot doesn't response
Back to top
View user's profile Send private message
game_over
Voice


Joined: 26 Apr 2007
Posts: 29

PostPosted: Sat Aug 30, 2008 6:16 am    Post subject: Reply with quote

Quote:
Okey I just tryed something maybe it is very nub or completly incorrect. But this doesn't work :'(


Code:
proc ucount { nick uhost hand chan text } {


to

Code:
proc ucount { nick uhost hand channel text } {
Back to top
View user's profile Send private message
jeroen_005
Voice


Joined: 22 Jun 2008
Posts: 19

PostPosted: Sat Aug 30, 2008 6:55 am    Post subject: Reply with quote

thanxs! This works Very Happy
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