I am trying to make this command add the command it adds to a text file, here is how far i've gotten:
Code:
on $*:text:/^!addcom !?(\S+)/iS:#:{
  if ($read(sreglist.txt,nw,$nick)) {
    msg $chan added $$2 to commands!
    writeini allcommands.ini commands $regml(1) $$3-
    write -c commandsresonse.txt
    .timerWritec 1 1 write -il1 commandsresonse.txt the current commands and their info for the bot http://bit.ly/PBBcommands $+ , ! $+ $regml(1)
  }
}

the thing is, it only has 1 command after the link, and i cannot find how to get it to add multiple commands without it being on separate lines. Please help.
Also would like this to delete the selected command from the line:
Code:
on $*:text:/^!delcom !?(\S+)/iS:#:{
  if ($read(sreglist.txt,nw,$nick)) {
    msg $chan removed $$2 from commands!
    remini allcommands.ini commands $regml(1)
  }
}

Thanks!


#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball