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.

Who's on channel

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
S
Soontir Fel
Voice
Posts: 4
Joined: Fri Feb 23, 2007 2:33 pm

Who's on channel

Post by Soontir Fel »

Hello! Can you help me? I need a script, which will take all nicks of all people on the channel and write them to some file (for example txt). And this list of nicks must update every minute, or two. I want to export this information to my web-site, like:

Code: Select all

On channel #xxxxxxx
Nick 1
Nick 2
Nick 3
Can you please help me?
Sorry for my bad english.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

bind time - * {
 set f [open nicks.txt w]
 foreach c [channels] {
  puts $f "On channel $c"
  foreach n [chanlist $c] {
   puts $f $n
  }
 }
 close $f ; #
}
S
Soontir Fel
Voice
Posts: 4
Joined: Fri Feb 23, 2007 2:33 pm

Post by Soontir Fel »

Thank you!!! But where should I put it? And can I make this bot invisible?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

You load it just like any other Tcl script.
S
Soontir Fel
Voice
Posts: 4
Joined: Fri Feb 23, 2007 2:33 pm

Post by Soontir Fel »

Thanks!
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Soontir Fel wrote:Thank you!!! But where should I put it? And can I make this bot invisible?
Apparently on some networks (not DALnet) there's a cloak user mode. Check with the network you use.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
S
Soontir Fel
Voice
Posts: 4
Joined: Fri Feb 23, 2007 2:33 pm

Post by Soontir Fel »

a cloak user mode
And what is it?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Alchera wrote:Check with the network you use.
f
fredvil
Voice
Posts: 21
Joined: Thu Dec 01, 2005 9:16 pm

Post by fredvil »

Sir_Fz, how to write only userlist on specific channel not all channels the bot is on. example: the bot is on #channel1, #channel2 & #channel3 and write only list on #channel1
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Code: Select all

#Channels to write the user nicklist from
set writechans "#chan1 #chan2 #chan3"

bind time - "*" write:chans

proc write:chans {m h d mo y} {
 if {([scan $m %d]+([scan $h %d]*60)) % 5 == 0} {
  set f [open nicks.txt w]
   foreach c [split $::writechans] {
    puts $f "On channel $c"
     foreach n [chanlist $c] {
      puts $f $n
      }
   }
  close $f
 }
}
Note: Edited to run every 5 minutes
Last edited by awyeah on Wed Jul 18, 2007 4:24 am, edited 2 times in total.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
f
fredvil
Voice
Posts: 21
Joined: Thu Dec 01, 2005 9:16 pm

Post by fredvil »

thanks a lot awyeah :)
f
fredvil
Voice
Posts: 21
Joined: Thu Dec 01, 2005 9:16 pm

Post by fredvil »

one more thing awyeah, how to adjust the write time to every 5 munites or to any given time?

thanks in advance!
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

I edited the code above, so it runs every 5 minutes. You can use that code.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
m
mazmardigan88
Voice
Posts: 2
Joined: Fri Aug 10, 2007 2:05 pm

Post by mazmardigan88 »

Hi!

I'm very interested in the same script, but with little modifications (I tried to do them by myself, but I don't know TCL :roll:

I just need the same but without the channel name (if possible) and every nick in the same line and separated by a comma and an space. E.g.

Nick1, Nick2, Nick3, Nick4

Thanks :D
t
tsukeh
Voice
Posts: 31
Joined: Thu Jan 20, 2005 6:22 am

Post by tsukeh »

mazmardigan88 wrote:Hi!

I'm very interested in the same script, but with little modifications (I tried to do them by myself, but I don't know TCL :roll:

I just need the same but without the channel name (if possible) and every nick in the same line and separated by a comma and an space. E.g.

Nick1, Nick2, Nick3, Nick4

Thanks :D

Code: Select all

bind time - * {
 set nicklist [chanlist #channel]
 set f [open nicks.txt w]
 puts $f [join $nicklist ", "]
 close $f ; #
}
Post Reply