I am trying to make this command add the command it adds to a text file, here is how far i've gotten:
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:
on $*:text:/^!delcom !?(\S+)/iS:#:{
if ($read(sreglist.txt,nw,$nick)) {
msg $chan removed $$2 from commands!
remini allcommands.ini commands $regml(1)
}
}
Thanks!