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.

!ucount

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
j
jeroen_005
Voice
Posts: 19
Joined: Sun Jun 22, 2008 7:47 am

!ucount

Post by jeroen_005 »

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

Code: Select all

There are currently X people in #thischannel
j
jeroen_005
Voice
Posts: 19
Joined: Sun Jun 22, 2008 7:47 am

Post by jeroen_005 »

Code: Select all

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 :'(
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

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
j
jeroen_005
Voice
Posts: 19
Joined: Sun Jun 22, 2008 7:47 am

Post by jeroen_005 »

nops i don't get any error when loading or running. when i type !ucount in my channel the bot doesn't response
g
game_over
Voice
Posts: 29
Joined: Thu Apr 26, 2007 7:22 am

Post by game_over »

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

Code: Select all

proc ucount { nick uhost hand chan text } { 
to

Code: Select all

proc ucount { nick uhost hand channel text } { 
j
jeroen_005
Voice
Posts: 19
Joined: Sun Jun 22, 2008 7:47 am

Post by jeroen_005 »

thanxs! This works :D
Post Reply