$nick will never == $me. $nick is the person who triggered it (who typed the command).

Anyhow, you need to either specify what commands you're using, or include the /inc in every command, or have it accept all commands, but only in a given channel (I doubt you have multiple bots in your channel that accept !command commands). Btw, /inc'ing the variable inside each command on the bot is the most accurate method. The other methods all allow for error if someone who can't use a command tries to.

DJ_Sol: The day is a good suggestion. Rather than doing the last 24 hours, do "yesterday's stats" or else "today's stats" instead. That's much easier to work with than 24 hour stats.


Invision Support
#Invision on irc.irchighway.net