mIRC Home    About    Download    Register    News    Help

Print Thread
#134617 03/11/05 12:29 AM
Joined: Nov 2005
Posts: 3
H
Self-satisified door
OP Offline
Self-satisified door
H
Joined: Nov 2005
Posts: 3
I have a ScrimBot that advertises information for scrims set up on a timer and activated by !scrimstart & !scrimstop. The only thing I am missing is the ability to send the content of a private message (sent to the bot) to a channel (preferably /notice #pugroupies). If anyone knows if this is possible or has any ideas please let me know. Also, if you'd like to see the script I'll be more than happy to include it.

#134618 03/11/05 12:46 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Do you mean this?

Code:
On *:text:!sendchan *:?: {
  notice #pugroupies $2-
}


Someone messages your bot with !sendchan Hi ! and the bot then notices the given chan with that message.

-Andy

#134619 03/11/05 05:36 AM
Joined: Nov 2005
Posts: 3
H
Self-satisified door
OP Offline
Self-satisified door
H
Joined: Nov 2005
Posts: 3
not quite...

Yes, i do want the text to be sent to the channel, as you suggested, but - I would like the source of the text to be anything sent to the bot in a private message (ie. if someone /msg BOT bla bal blah, I want it to be shown in the channel as /notice #pugroupies bla bal blah)

Thanks again,

Josh

#134620 03/11/05 06:37 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Code:
on *:text:*:?:{ .notice #pugroupies $1- }  


Personally I don't know why you'd want everything in a pm/query window relayed to the channel, but that should do it.

#134621 03/11/05 05:19 PM
Joined: Nov 2005
Posts: 3
H
Self-satisified door
OP Offline
Self-satisified door
H
Joined: Nov 2005
Posts: 3
Yes, that is exactly what I want thank you. To explain - I have a bot that on !scrimstart advertises in #findscrim & #calscrim for a 5v5 scrim west and whatnot. When someone PM's the bot because they want to scrim, I wanted the text to be displayed in the channel so anyone in the clan could respond & give that person the ip & password to the server. I will probably include the code you provided (modified with $nick : $1-) in a if statement that checks if the scrim timer is running and if it is copies the text to the channel. Thanks, you put the missing piece in my puzzle ; )


Link Copied to Clipboard