Just a minor node here, since I also wrote a small bot to do something like this, you can get a list of the votes on any particular post and check whether your account is in the list, that way it is much less expensive no need to load a file to check.