Currently trying to make it so my mods or my self can add text commands via my bot so i dont have to add code. So like
!addcommand !test This is a test
and then someone types !test and the bot replys with This is a test.

This is what I have but it but when go to have to bot reply it doesn't

Quote:
on $*:text:/^!addcommand !?(\S+)/iS:#:{
if ($nick !isop #) return
writeini commands.ini commands $regml(1) $$3-
.msg $chan Command has been added!
}