danielrmay / releasedatebot Goto Github PK
View Code? Open in Web Editor NEWA Reddit bot that replies to comment requests for video game release date countdowns. http://reddit.com/user/ReleaseDateBot
A Reddit bot that replies to comment requests for video game release date countdowns. http://reddit.com/user/ReleaseDateBot
At present any UTF-8 characters saved to this file break.
Should be fairly straightforward using:
import codecs
file = codecs.open("lol", "w", "utf-8")
file.write(u'\ufeff')
file.close()
taken from this SO answer.
Note: Remember to use utf-8-sig
Or better yet, create a back-end and store the entries in a database of some kind.
I think this should be as simple as wrapping the main praw execution with a try/except.
I believe we can retrieve all of the necessary data for determining the countdown using GiantBomb's API, which gives release dates as a part of their game API.
See:
http://www.giantbomb.com/forums/api-developers-3017/quick-start-guide-to-using-the-api-1427959/#13
I think a nice new feature would be if a user could click on an "update" link in each comment which would signal the bot to update the specified comment with either an updated countdown, or a new countdown if the game was not previously recognised.
Use case:
Considerations
Are there any APIs that exist at present that can provide this?
If not, can we create one?
At the moment the majority of the data I'm getting is from the following links:
It would be nice to automate this process (or at least the insertion into the script / database) -
See issue #2
๐
Write some garb about how to clone and get this running should someone wish to.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.