Frequently Asked Questions
Who made this bot and why?
I made it a little while ago in response to a thread on r/NBA complaining about twitter videos on mobile. I figured that this was a way I could actually contribute something to the subreddit considering I'm go on there so often. It was initially solely for r/nba but after some requests I let it post in some of the other sports subreddits.
Do you want gold/donations?
I added this question just because I've gotten way more PMs about this than I expected. I appreciate the sentiment behind these but no one should feel obligated to give me anything. I honestly made the bot just to contribute to r/NBA so I won't post any links for donations or anything like that. I can't really say no if you want to buy me some food, though, so if you would like you're welcome to PM me for a link.
As far as gold goes, as I said, I sincerely appreciate the sentiment but to be 100% honest I don't really care too much about gold and you'd be better off spending your $5 or whatever on something else
How did you make this/how do you make reddit bots?
Basically all the bot consists of is a script on a server that's run over and over again. (Think crontab) There are a few different methods of communicating with Reddit but after googling I used Praw because I wrote the script in Python. The account itself is just like any other reddit account.
So for this bot specifically here's what happens when the script is ran once per minute:
- Communicates with reddit using Praw and u/TwitterVideoBot 's credentials
- Loops through new topics in r/nba, r/baseball, r/hockey, r/soccer, r/mma, r/squaredcircle, and r/nfl skipping the ones it has already seen
- Checks each topic's URL for a twitter link
- Uses the tweet URL and Twitter API to parse through the tweet to identify if it is a twitter video/vine/card/etc
- Rips the source video URL from the tweet
- Uses the streamable API to upload the video
- Replies to the topic with the response from streamable
There's obviously some other behind the scenes stuff but that's basically it.
Do you have any other bots or have any other future plans?
No other bots and no plans as of now. If you have anything that bothers you on Reddit or just have an idea of something for me to work on feel free to PM me or the bot. You can also send a PM if you have any other ideas to improve the bot itself.
Posted Jan 9, 2016, 8:24 PM UTC
Do you feel human?