You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After my bot went on a rampage to post the same article over and over again (due to Python 2 and UTF8 handling 🙄) , I wrote a safeguard script. It checks for duplicated links in the last 200 tweets. If something is wrong, it wont start trackthenews and also send me an e-mail (the mailing is done in my magic run.sh script). This could also be part of trackthenews with an option such as --safe. What do you think?
I think I'd rather not merge this into master because it makes some assumptions about usage that I don't want to lock in so early. (For example, that you would only want an attached account to tweet any given link once; I can imagine that people could hook up two TTN bots to a single account, or hook it up to their main account, or something like that.)
I'm going to look it over and see if the specific problem you encountered can be better addressed with error handling, or by moving around when the URL gets recorded into the DB? I know you've got #15 in the queue to address the UTF-8 problem, which I'll get to in a sec too!
After my bot went on a rampage to post the same article over and over again (due to Python 2 and UTF8 handling 🙄) , I wrote a safeguard script. It checks for duplicated links in the last 200 tweets. If something is wrong, it wont start
trackthenews
and also send me an e-mail (the mailing is done in my magic run.sh script). This could also be part oftrackthenews
with an option such as--safe
. What do you think?The script: https://github.com/jfilter/ifg-ticker/blob/master/safeguard.py
The text was updated successfully, but these errors were encountered: