mIRC Home    About    Download    Register    News    Help

Topic Options
#133334 - 19/10/05 04:24 PM auto reply
LoKey Offline
Bowl of petunias

Registered: 19/10/05
Posts: 2
I'm running a "bot" and I need it to auto respond to specific commands like !stats and I just can't figure out how to do it...

any help would be greatly appreciated

Top
#133335 - 19/10/05 04:58 PM Re: auto reply
Riamus2 Offline
Planetary brain

Registered: 13/10/04
Posts: 8327
Loc: MA, USA
/help on text

Code:
on *:text:!stats:#yourchan: {
  [do this]
}


Replace the channel name and put in whatever code you want it to do when someone types !stats. Replace !stats with any other triggers and repeat this if you have other triggers needed.

Note that if you want it to respond to something you type from the bot, that you need to use on input instead of on text (/help on input).
_________________________
Invision Support
#Invision on irc.irchighway.net

Top
#133336 - 19/10/05 05:09 PM Re: auto reply
LoKey Offline
Bowl of petunias

Registered: 19/10/05
Posts: 2
thanks, but what do I write to make it respond with a specific sentence publicly in the channel?

Top
#133337 - 19/10/05 05:39 PM Re: auto reply
Riamus2 Offline
Planetary brain

Registered: 13/10/04
Posts: 8327
Loc: MA, USA
Direct from the help file... (which is why I said to use /help on text)

Quote:
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.
_________________________
Invision Support
#Invision on irc.irchighway.net

Top