![]() |
"Outa Server Time" - some more digital art. |
In the previous post, I gave a brief introduction to the project, and a rundown of what I've done so far. In this post, I'll be expanding on the latter.
Here are a couple of the functions that I've set up:
- hourly - This function likes recent tweets with certain key phrases, such as "Artificial Intelligence". It picks a random number of tweets between 10 and 20 to like and run's within 5 minutes of an hour, to give it more human-like activity.
- biHourly - syncs the followers/following list, follows back people who follow the account, then folows 3-7 people who've recently talked about a certain topic, such as "OpenAi". The program also mutes everyone because notifications are annoying.
- semiWeekly - Unfollows non followers (in increments of 150 so we don't exhaust the server)
- dreams - Okay, this one doesn't really do anything that important, but when the program is idling, this shows ascii sheep and and thunderbolts every couple minutes.
- tron - It will (eventually) fight for the users to prevent inflammatory and offensive tweets.
- confused - If an exception is thrown in the timing loop, this will tag me in a tweet saying "Help me, Obi-Wan Kenobi. You're my only hope."
- itsTheFinalCountdown - a fancy countdown timer used in the timing loop. (It looks really cool because it is a refreshing timer)
- wakeMeUpInside and noSleep - sends morning and late night tweets randomly from an array of tweets.
- outaTime - The timing loop, includes a bunch of loops that run the functions during their designated time frames.
Notes: Due to rate limits on the twitter API, there are a couple server breaks and follow/unfollow time limiters that I've put in place throughout the program. You'd likely have to implement something similar if your'e going to try this yourself. Leave a comment if you'd like to know the specifics.
As always, any comments, suggestions, or questions are greatly appreciated!
Leave a comment, or message me on twitter 🚀
As always, any comments, suggestions, or questions are greatly appreciated!
Leave a comment, or message me on twitter 🚀
Comments
Post a Comment