> Type write `@me.citationCount = 7` anywhere in your code, and that will work.
That is elegant. I like it.
> only notifies you once when it goes above the threshold and then once when it's back safe again.
It might also be a good idea to add an argument to the email function to tell it not send an identical email to the previous email sent within a window (or ever). So just fire off your citation count email, knowing that you will only actually be send an email when count changes.
This simplifies the scripts, while offloading a bit more work and persistance to the API.
That is elegant. I like it.
> only notifies you once when it goes above the threshold and then once when it's back safe again.
It might also be a good idea to add an argument to the email function to tell it not send an identical email to the previous email sent within a window (or ever). So just fire off your citation count email, knowing that you will only actually be send an email when count changes.
This simplifies the scripts, while offloading a bit more work and persistance to the API.