All you need is to make an "app" in reddit, and twitter and input these into the bot along with what subreddit you want. You can adjust the time the bot sleeps for and how many posts it looks throught by changing the time.sleep() and the (limit=YOUR NUMBER)
TheRinger/twitter-reddit-posting-bot
this bot will take the hot, new, or top posts from a certain subreddit you choose and post them to twitter.
Python