mIRC Homepage
Posted By: blicod Announce to another #channel - 22/09/06 02:31 AM
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.
Posted By: schaefer31 Re: Announce to another #channel - 22/09/06 02:57 AM
Use the search page and search for +relay
Posted By: FNar Re: Announce to another #channel - 22/09/06 03:00 AM
Just use

msg #news blah blah | msg #test blah blah
Posted By: Scorpwanna Re: Announce to another #channel - 22/09/06 03:51 AM
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- }
}
Posted By: blicod Re: Announce to another #channel - 22/09/06 01:07 PM
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
Posted By: Scorpwanna Re: Announce to another #channel - 22/09/06 03:39 PM
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?
Posted By: Riamus2 Re: Announce to another #channel - 22/09/06 11:10 PM
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.
Posted By: blicod Re: Announce to another #channel - 23/09/06 01:42 AM
Thanks to all of ya!

Works Perfectly! laugh
© mIRC Discussion Forums