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.
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Soontir Fel
Voice
Posts: 4 Joined: Fri Feb 23, 2007 2:33 pm
Post
by Soontir Fel » Fri Feb 23, 2007 2:40 pm
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.
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Fri Feb 23, 2007 3:04 pm
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 ; #
}
Soontir Fel
Voice
Posts: 4 Joined: Fri Feb 23, 2007 2:33 pm
Post
by Soontir Fel » Sat Feb 24, 2007 6:14 am
Thank you!!! But where should I put it? And can I make this bot invisible?
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Sat Feb 24, 2007 7:05 am
You load it just like any other Tcl script.
Alchera
Revered One
Posts: 3344 Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:
Post
by Alchera » Sat Feb 24, 2007 8:23 am
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
Soontir Fel
Voice
Posts: 4 Joined: Fri Feb 23, 2007 2:33 pm
Post
by Soontir Fel » Sat Feb 24, 2007 11:59 am
a cloak user mode
And what is it?
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Sat Feb 24, 2007 1:31 pm
Alchera wrote: Check with the network you use.
fredvil
Voice
Posts: 21 Joined: Thu Dec 01, 2005 9:16 pm
Post
by fredvil » Wed Jul 18, 2007 2:49 am
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
awyeah
Revered One
Posts: 1580 Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:
Post
by awyeah » Wed Jul 18, 2007 3:47 am
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.
==================================
fredvil
Voice
Posts: 21 Joined: Thu Dec 01, 2005 9:16 pm
Post
by fredvil » Wed Jul 18, 2007 4:00 am
thanks a lot awyeah
fredvil
Voice
Posts: 21 Joined: Thu Dec 01, 2005 9:16 pm
Post
by fredvil » Wed Jul 18, 2007 4:14 am
one more thing awyeah, how to adjust the write time to every 5 munites or to any given time?
thanks in advance!
awyeah
Revered One
Posts: 1580 Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:
Post
by awyeah » Wed Jul 18, 2007 4:24 am
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.
==================================
mazmardigan88
Voice
Posts: 2 Joined: Fri Aug 10, 2007 2:05 pm
Post
by mazmardigan88 » Fri Aug 10, 2007 2:11 pm
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
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
tsukeh
Voice
Posts: 31 Joined: Thu Jan 20, 2005 6:22 am
Post
by tsukeh » Fri Aug 10, 2007 2:29 pm
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
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
Code: Select all
bind time - * {
set nicklist [chanlist #channel]
set f [open nicks.txt w]
puts $f [join $nicklist ", "]
close $f ; #
}