Ok, appreciate that.

My last question and my bot will be complete for now.


This is my join code, I want ppl to gain 1 point when they join. So new players to the channel can start with at least 1 point. But I don't want them to be able to farm points by joining and leaving and re-joining.

Code:
on !*:join:#:{
  $+(.timerpoints.,#,.,$nick) 0 3600 add.pts $+(#,.,$nick)
  add.pts $+(#,.,$nick)
}




So I TRIED to do the following code below to remove 1 point when they leave and give them 1 point when they join. To even stuff out, since I don't know how to make it so if non new players join they won't get the 1 point AGAIN. So I copied the fir alias. of

Code:
alias -l add.pts {
  if (%point.off) return
  writeini -n Points.ini $1 Points $calc($readini(Points.ini,$1,Points) + 1)
}


I renamed it to alias -l subtract.pts and did writeini -n Points.ini $1 Points $calc($readini(Points.ini,$1,Points) - 1)

hoping the - 1 would remove 1 point when they left.

Code:
on !*:part:#:$+(.timerpoints.,#,.,$nick) off
alias -l add.pts {
  writeini -n Points.ini $1 Points $calc($readini(Points.ini,$1,Points) + 1)
  subtract.pts $+(#,.,$nick)
}


Above is my when they leave the channel code. I don't understand the alias -l add.pts part of that code, when they join it doesn't have the alias as part of the code, but the leaving part of the code has alias -l add.pts in it.

And you can see at the end of the part code I added my subtract.pts which doesn't work.