mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2006
Posts: 3
B
blicod Offline OP
Self-satisified door
OP Offline
Self-satisified door
B
Joined: Sep 2006
Posts: 3
Is it possible to announce/post another <user>TEXT to another #channel (almost like copy/paste)

exaple
I have a bot with nickname newsbot that announce news in #news
I want a script to announce all the text newsbot announce to another channel #test

I have read something similar in this forum, regarding releases I think, but there it only announce certain word?


please someone help me with this.

Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
Use the search page and search for +relay

Joined: Mar 2004
Posts: 210
F
Fjord artisan
Offline
Fjord artisan
F
Joined: Mar 2004
Posts: 210
Just use

msg #news blah blah | msg #test blah blah

Joined: Sep 2003
Posts: 261
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2003
Posts: 261
amsg is fun too.

Howerver, maybe like

Say your news announcing bot is Jim and the other bot is bubba.

Bubba needs this:
on 1:text:*:#: {
if ($nick == Jim) { msg #channel $1- }
}

Joined: Sep 2006
Posts: 3
B
blicod Offline OP
Self-satisified door
OP Offline
Self-satisified door
B
Joined: Sep 2006
Posts: 3
Thank you all;D

#On this code

on 1:text:*:#: {
if ($nick == Jim) { msg #channel $1- }
}

Will this work as a normal user-script in mIRC or are we talking about a sitebot here.

I don´t want a second sitebot, and I am not allowed to edit the first one:(

Will this work like lets say. I am (user/nickname Jim) and sit in 2 channels. The channels are
#NEWS (where the news are announced, under username botuser )
#TEST (where I wan´t the announcment copied to)

I thought it was possible to run a script in mIRC that copy all the text "botuser" announce and ad it in a new channel
Just like copy/paste


Thanks again

Joined: Sep 2003
Posts: 261
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2003
Posts: 261
Normal user script is exactly what this is. If you are Bubba you would need the "on text" in your remote scripts of mirc
Code:
on 1:text:*:#: {
  if ($nick == Newsbot) { msg #channel $1- }
} 


Which means: on level1"text" "anything that's said" "on #channel1" {
if the "nickname saying the text" "is" "Newsbot", "message #channel2 exactly what Newsbot said in #channel1"
}

Example of how it would go:

#channel1
<Newsbot> This is an example to show how this would work

That on text event would see it and then would make you message #channel2:

#channel2
<yournick> This is an example to show how this would work

smile?


We don't just write the scripts, we put them to the test! (ScriptBusters)
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Just to make it easier for him...

Code:
on 1:text:*:#news: {
  if ($nick == Newsbot) { msg #test $1- }
} 


(just replaced the # and #channel with what he needs)

Keep in mind, that this relay of information will be sent to #test by YOU and not be Newsbot and it will only relay the text from Newsbot. If you want, you can change msg #test $1- to something like msg #test NEWS: $1- so it's clear that it's relaying the information.


Invision Support
#Invision on irc.irchighway.net
Joined: Sep 2006
Posts: 3
B
blicod Offline OP
Self-satisified door
OP Offline
Self-satisified door
B
Joined: Sep 2006
Posts: 3
Thanks to all of ya!

Works Perfectly! laugh


Link Copied to Clipboard