How do you allow for: !youtube - to trigger alone !youtubelolol - not to trigger, but still let !youtube This is my youtube! - trigger?
on *:TEXT:!youtube*:#: { on *:TEXT:!youtube *:#: {
----
And how do I define the difference between !announce1 !announce2 !announce3 without being able to do $2 (not separate word) and having on *:TEXT:!announce*:#: { triggering on everything that starts with announce.
You can't do it with just wildcard, you either can use regex, or you have to use an if statement with either using * to match anything or you can start with !youtube* and then check that $1 is youtube, and if $2 is non $null etc
#mircscripting @ irc.swiftirc.net == the best mIRC help channel
You can't do it with just wildcard, you either can use regex, or you have to use an if statement with either using * to match anything or you can start with !youtube* and then check that $1 is youtube, and if $2 is non $null etc
Yeah regex really complicated though. Figured that was probably where it was headed. Feels like a whole language in itself
It really is a whole new language, and it is not so easy. But once you know it pretty well, it's time saving. If you want to play around with them, I recommend www.regex101.com, the best website out there.
#mircscripting @ irc.swiftirc.net == the best mIRC help channel