So, wondering how Stompy, Pokey, and Ziggy work??? They use a mIRC function known as Remotes, and they respond to you/others through Events, known as !triggers.
I'll be plain about this, mIRC does a terrible job with explaining, especially with noobs. So after me having a fit about it, I'll explain it to anyone who wants to know, the easy way!
Things you need to know before we get stardedIdentifiersMost identifiers (if not, all) start with an $ - and I don't know why.
$me = You
$nick = the nickname we're talking about
$chan = the channel we're talking about
remotes.iniWhile in mIRC, press ALT R to access your remotes script!
SyntaxHow do we write a remote? Here's the basic formula, and I'll break it down
- Code:
-
on 1:TEXT:!trigger:#channel: {
msg $chan You've executed a trigger!
}
If you take some time, you can probably figure it out on your own, but if you're slow, lets break it down.
on 1: - Access Level, Permissions, whatever you want to call it. It's the access (voice, no voice, op, owner, halfop) the user we're talking about. You can change this to a higher number for ops, or voices, but for now, we'll keep it at 1 to include everyone!
:TEXT: - Your bot will "listen" for this text. You can change this to :BAN:, :ACTION:, and things like that! :TEXT: would include a !trigger
:!trigger: - This is the text that your bot is listening for. Change it however you like. For !triggers, we only want it as one word (!r we want a few, but that's another story). If you want it too look for this trigger at the start of a sentence, you would say *!trigger. At the end of a sentence !trigger*. Anywhere in a sentence *!trigger*.
:#channel: - This is the channel your bot will look for the !trigger. If you leave it as just :#: it will look for it on all channels it's on.
: { - This is notifying your bot it's about to do something (respond to the !trigger in this case)
msg $chan - This is telling your bot to say something in the channel the !trigger was performed
You executed a trigger! - This is what the bot must say when it "hears" !trigger (you can add color to this by pressing CTRL K) (This is the ONLY part you can add color to.)
} This tells the bot it's all done!
NoticeYou can change the script to send a /notice to the person who executed the !trigger
Like this:
- Code:
-
on 1:TEXT:!trigger:#channel:{
notice $nick You executed a trigger!
}
I change the msg $chan to notice $nick. The $nick means it sends a /notice to the nick who typed !trigger.
Got that all? If I'm in #radio, I'd be glad to help!