Loki, I found everything in this thread on this forum. It's just a point code that i've seen just about everyone pass around on here. So I picked it up.


Everything works just fine on my bot except my !points erase code, it erases their whole name from the points.ini file and leave it blank. So when they type !points it tries to read the points.ini and sees it's blank and just says $nick has total points.

I want it to say $nick has 0 total points, so I need to figure out a way to make !points reset change the values to 0 instead of erasing the whole points.ini file.


Code:
on *:text:!points reset:#:{
  if ($nick isop #) {
    { msg $chan All points are now erased }
    write -c points.ini.
  }
  else { msg $chan This command is only available to moderators. }
}


I know the -c points.ini file clears the whole file, I'm just not sure what to add to make it reset everyone to 0 instead of erasing the whole file.


Bramzee, I changed the 600 to 3600 (which should be 3600) seconds, but if I change it while someone is in my channel they still gain the point every 600 seconds and anyone who joins after only gains 1 point an hour.

So do I need to make the bot leave the channel then rejoin if I change anything in the code? or make sure there is nobody in the channel if I change something?

Last edited by Echosyp; 23/05/14 05:31 PM.