you could try this, but as others have said, i think allowing remote users to actually create commands is a bit risky, it would be better to create a file with triggers and replies etc.
on 99:TEXT:!set *:*:{
if (($left($$2,1) == !) && if ($left($$3,1) == #) ) {
write -il1 remote.user.triggers.mrc ON 99:TEXT: $+ $2 $+ :* :msg $3 $replace($4- ,|,| ,$,$ ,%,% ,$chr(123), $+ $chr(123) ,$chr(125), $+ $chr(125) )
reload -rs remote.user.triggers.mrc
;^ I have had problems with reload so if it dont work uses the bwlow line
;unload -rs remote.user.triggers.mrc | load -rs remote.user.triggers.mrc
}
}
; replace 99 with the remoteuser privilage level.
the $replace fixes | $ % { } from being evaluated, however be warned there might be some others i cant think of right now.
Usage is as follows in channel or pm, !set !mytrigger #achannel ye old message here
later in channel or pm, !mytrigger
and the bot does MSG #achannel ye old message here
PS: i didnt fully test that either so cavetemptor