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 

nick list through botnet

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
kanibus
Halfop


Joined: 03 May 2005
Posts: 44

PostPosted: Thu Aug 11, 2005 3:41 pm    Post subject: nick list through botnet Reply with quote

hey i am running a channel relay script that works perfect. i was just wondering is there anyway to have it so that is someone types !nicks or something similar it would display the channel list for both channels?
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Thu Aug 11, 2005 4:35 pm    Post subject: Reply with quote

Code:

bind pub - !nicks foo
bind bot - nickq bar
bind bot - nicka moo
proc foo {n u h c t} {
   putbot $t "nickq $n $c"
}
proc bar {f c t} {
   foreach {n c} [split $t] {break}
   putbot $f "nicka $n $c [join [chanlist $c]]"
}
proc moo {f c t} {
   foreach {n c} [split $t] {break}
   puthelp "notice $n :nicks on $f's channel $c: [join [lrange [split $t] 2 e]]"
}
Back to top
View user's profile Send private message Visit poster's website
kanibus
Halfop


Joined: 03 May 2005
Posts: 44

PostPosted: Thu Aug 11, 2005 5:03 pm    Post subject: Reply with quote

hey thanks for the quick response demond. i am getting 'bot not on the botnet' though, im not sure that i edited your script quite right. i changed nickq to the bot i am configuring the script on, and nicka as the bot in the other channel. thanks for your help Very Happy
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Thu Aug 11, 2005 5:09 pm    Post subject: Reply with quote

no no, don't edit anything, all you need to do is to run this on both bots and type !nicks otherbot on channel, where otherbot is the nick of the bot on the other side
Back to top
View user's profile Send private message Visit poster's website
kanibus
Halfop


Joined: 03 May 2005
Posts: 44

PostPosted: Thu Aug 11, 2005 5:18 pm    Post subject: Reply with quote

ahhh works perfect, thanks. Razz now if i wanted to strip Chanserv and the botnick?
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Fri Aug 12, 2005 1:38 am    Post subject: Reply with quote

Code:

proc bar {f c t} {
   foreach {n c} [split $t] {break}
   set t [chanlist $c]
   foreach e [list $::botnick ChanServ] {
      if {[set i [lsearch -exact $t $e]] != -1} {
         set $t [lreplace $t $i $i]
      }
   }
   putbot $f "nicka $n $c [join $t]"
}
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive 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