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 

Relay Botnet Script

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
CoCooner
Voice


Joined: 09 Feb 2009
Posts: 3

PostPosted: Sat Feb 14, 2009 9:34 pm    Post subject: Relay Botnet Script Reply with quote

Hello

I'd like a relay script where I can set it only reacts to certain words and the whole still has a botnet to another irc network posts

I have already searched archives but unfortunately not found the script to respond to certain words could


msl i have this but i want it in tcl Wink

Code:
on *:TEXT:Hello:#Channel1:{
  if ($nick == AnyNick) && ($network == Network1) {
    var %a = 1
    while ($scon(%a)) {
      if ($scon(%a).network == Network2) {
        scon %a msg #Channel2 $1-
      }
      inc %a
    }
  }
}





it would be nice if I get such a small script could write because I myself can no TCL

ever thank in advance
Back to top
View user's profile Send private message
Madalin
Master


Joined: 24 Jun 2005
Posts: 310
Location: Constanta, Romania

PostPosted: Fri Feb 01, 2013 5:44 pm    Post subject: Reply with quote

This i really didnt tested and im not sure about the proc matched:proc variable [join [lrange $arg 1 end]] if its good

If i messed something sorry, if someone will eventually test this and the script will give errors just let me know and i will fix it as quickly as i can.

The code looks horrible i know Smile yet i wrote it here and didnt had time to design everything.

Code:

bind PUBM - "#channel *" match:pubm

bind BOT - matched matched:proc

set temp(match) [list "something" "are whe there?"]             ;# words/phrases you want to match
set temp(network) "quakenet"                                            ;# network from where you want the bot to match the words/phrases
set temp(bot) "leafbot"                                                       ;# botnet nick of the eggdrop who will send the relayed message
set temp(relaychan) "#channel2"                                        ;# channel on which the relayed message will be displayed

proc match:pubm {nick uhost hand chan arg} {
   global temp

   if {$nick == $::botnick} { return }

   if {$::network == "$temp(network)"} {
      foreach n $temp(match) {
         if {[string match -nocase "*$n*" $arg]} {
            putbot BOT "matched $arg"
         }
      }
   }
}

proc matched:proc {from key arg} {
   global temp

   putserv "PRIVMSG $temp(chanrelay) :[join [lrange $arg 1 end]]"
}

_________________
https://github.com/MadaliNTCL - To chat with me: https://tawk.to/MadaliNTCL
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests 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