A Twitter bot written in C# using Tweetinvi and System.ServiceModel.Syndication to tweet a random article from a custom list of RSS feeds at a custom frequency in hours.
Unsure how this is happening according to code. Waiting to see if it happens again. If it does, I will not change code but merely change readme and config to reflect this (queueGap = gap, not queueGap = gap - 1). It will actually be more simply explained this way, but it was still not intended.
I just realized the methods never end the wait I am using them, so I replaced a great deal of the calls with returns and stuck a while loop in Main. It should be fixed, but creating issue just in case.
This is due to asynchronous code, which is required for the syndication feed and tweeting. For instance, across ten hours, it drifted 29 seconds. I will likely fix by running the timer every 30 seconds instead of 60, which will automatically reset the drift every ~12 hours instead of risking the bot tweeting too late should it execute code at the 59 second mark or near and rollover. Example: 7:00:31 AM code execution, followed by 8:00:01 AM code execution.
Everything does run successfully, but it is supposed to say "[timestamp]: Press any key to exit..." and wait for user prompt before closing. It does not currently do this.
"Press any key to exit" is misleading as you have to always press Enter to activate it when the keys.txt file is not present or after running a test tweet (this functionality does not currently work, but if it did as intended, this would be pertinent).