mIRC Home    About    Download    Register    News    Help

Print Thread
#133334 19/10/05 03:24 PM
Joined: Oct 2005
Posts: 2
L
LoKey Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
L
Joined: Oct 2005
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

#133335 19/10/05 03:58 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
/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
#133336 19/10/05 04:09 PM
Joined: Oct 2005
Posts: 2
L
LoKey Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
L
Joined: Oct 2005
Posts: 2
thanks, but what do I write to make it respond with a specific sentence publicly in the channel?

#133337 19/10/05 04:39 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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

Link Copied to Clipboard