Re-wrote to be much more simple

You're whole setup with f.entries[0]['link'] just grabs the top entry. This will make the bot miss entries when there are more than one per feed update. 

Parts of code that only need to be executed once don't need to be in a function. Only ones that are executed multiple times or from multiple places.