| View previous topic :: View next topic |
| Author |
Message |
jeroen_005 Voice
Joined: 22 Jun 2008 Posts: 19
|
Posted: Fri Aug 29, 2008 6:13 am Post subject: !ucount |
|
|
Is there an function in eggdrop for getting the following output:
| Code: | | There are currently X people in #thischannel |
|
|
| Back to top |
|
 |
jeroen_005 Voice
Joined: 22 Jun 2008 Posts: 19
|
Posted: Fri Aug 29, 2008 12:35 pm Post subject: |
|
|
| 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 |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Fri Aug 29, 2008 12:38 pm Post subject: |
|
|
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 |
|
 |
jeroen_005 Voice
Joined: 22 Jun 2008 Posts: 19
|
Posted: Fri Aug 29, 2008 1:18 pm Post subject: |
|
|
| 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 |
|
 |
game_over Voice
Joined: 26 Apr 2007 Posts: 29
|
Posted: Sat Aug 30, 2008 6:16 am Post subject: |
|
|
| 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 |
|
 |
jeroen_005 Voice
Joined: 22 Jun 2008 Posts: 19
|
Posted: Sat Aug 30, 2008 6:55 am Post subject: |
|
|
thanxs! This works  |
|
| Back to top |
|
 |
|