mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2014
Posts: 2
S
stdio Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
S
Joined: May 2014
Posts: 2
Hello,

I would like to echo/copy text (a keyword) from a channel on a network (undernet) to another channel in a different network (myserver). Is this possible? I will try to give an example below:

- Undernet - #mychannel
user says "Hello"

- Myserver - #mychannel
user said "Hello" on #mychannel (Undernet)

I managed to do it on the same network, but I don't know how to do it on 2 different networks.

Thank you!

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: May 2014
Posts: 2
S
stdio Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
S
Joined: May 2014
Posts: 2
Can you help me do this only when a specific word is written?

Thank you!

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
on *:text:*word*:#: {

Originally Posted By: Help Files

on TEXT

The on TEXT event triggers when you receive private and/or channel messages.

Format: on <level>:TEXT:<matchtext>:<*><?><#[,#]>:<commands>

Example: on 1:TEXT:*help*:#mirc,#irchelp:/msg $nick what is the problem?

The on ACTION and on NOTICE events use exactly the same format as on TEXT, and trigger on an action and on a notice event respectively.

The match text can be a wildcard string, where:

* matches any text
& matches any word
text matches if text contains only this word
text* matches if text starts with this word
*text matches if text ends with this word
*text* matches if text contains this word anywher


The match text can also be a regular expression. See the $ prefix section in Access Levels.

The location where this event occurs can be specified using:

? for any private message
# for any channel message
#mirc for any messages on channel #mirc
* for any private or channel messages

Examples

on 1:TEXT:hello*:#:/msg $chan Welcome to $chan $nick!

This listens on any channel for any line beginning with the word hello and welcomes the user who said it to the channel.

on 1:TEXT:*cookie*:#food:/describe $chan gives $nick a cookie smile

This listens on channel #food for any message containing the word cookie and gives the user who said it a cookie.


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Oct 2005
Posts: 71
D
Babel fish
Offline
Babel fish
D
Joined: Oct 2005
Posts: 71
I used this a long time ago and it worked well back then so it might be what you are looking for. I didn't have time to test it but it should work fine. It will copy the txt from one server and echo it over to another. Be sure to edit the details for your channel name/server name in the snippet:

Code:
#EchoBoT on
on *:TEXT:*:#mychannel:{
  var %e = /^\Your|Echo|Words|Here/iS
  var %f = /(?:Your|Blocked|Filtered|Words|Here)/iS
  if ($regex($1-,%e)) {
    if (!$regex($1-,%f)) {
      if ($network == Undernet) {
        var %text = $read(FILENAME,W,$+(*,$2-,*))
        var %i = 1
        var %netcnt = $scon(0)
        while (%i <= %netcnt) {
          if ($scon(%i).network == Myserver) { 
            scon $scon(%i) 
            .msg #mychannel <EchoBoT> $1- $date
          }
          inc %i
        }
      }
    }
  }
}
#EchoBoT end
Menu menubar,status,channel {
  .$iif($group(#EchoBoT) == on,$style(1)) EchoBoT
  ..$iif($group(#EchoBoT).status == on,$style(2)) Enable:/.enable #EchoBoT | echo -a ->-[EchoBoT Script has been Enabled].
  ..$iif($group(#EchoBoT).status == off,$style(2)) Disable:/.disable #EchoBoT | echo -a ->-[EchoBoT Script has been Disabled].
}


Ok I think I got that right, As I said it has been a while since I used it but it should do what you want. Add words you wanted to capture on var %e and words you may also want to block/filter on var %f.

You can also right click on your mIRC screen and select enable/disable under EchoBoT as well or from the menu itself. This is not my work and I forget who's it was but all credit to them (I have a feeling it was from this board lol). Hope that helps and good luck smile

Last edited by D00M; 19/05/14 08:47 PM.

Link Copied to Clipboard