Beautiful, thanks very much.
I have a big project happening, so I may be asking more questions in the forum.
Obviously I'll try my hardest to learn it first.
To elaborate on my question about regexp, an example of what I'm trying to do.
Code: Select all
automacro 1 {
guild /!($myNameIs) ($command)/
call main
}
because at the moment, I can't just call my macros the command name. I have to change my macros.txt for each bot to suit the callSign that I want to use.
eg:
Code: Select all
automacro 4 {
guild /!(botName|a) (move|follow) (.*) (.*)/
call main
}
macro main{
if ($.caller == 4 && $.lastMatch == move) call move
}
macro move{
do move etc etc
conf etc etc
do g etc
}
As you can see, if there's a way to put $variables into a regexp it'll cut my code, and mean that I can have the same macros.txt for each bot.
Perhaps a subroutine somewhere.