Code:
on $*:text:/^!addcom !?(\S+)/iS:#:{
  if ($nick !isop #) return
  writeini commands.ini commands $regml(1) $$3-
}
 
on $*:text:/^!delcom !?(\S+)/iS:#:{
  if ($nick !isop #) return
  remini commands.ini commands $regml(1)
}
 
on $*:text:/^!(\S+)/:#:{
  if ($nick !isop #) return
  if ($readini(commands.ini,n,commands,$regml(1))) msg # $v1
}




To add: "!addcom !test this is a test command"
To del: "!delcom !test"
To use: "!test" Bot -> this is a test command"

To edit, just redo the !addcom !test and add whatever you want the new message to be.

Last edited by Bramzee; 30/04/14 09:29 PM.