ansq / ircr_info_bot Goto Github PK
View Code? Open in Web Editor NEW/u/IRCR_Info_Bot on /r/isrconspiracyracist
License: MIT License
/u/IRCR_Info_Bot on /r/isrconspiracyracist
License: MIT License
Example: https://www.reddit.com/r/isrconspiracyracist/comments/3jhxva/-/curbtzf
Solution: Escape all underscores in username text section with backslashes.
https://www.reddit.com/r/redditdev/comments/2ujhkr/important_api_licensing_terms_clarified/
Deprecation of cookie authentication for API consumers
Use of the API when authenticated via cookies is deprecated and slated for removal. All API clients MUST convert to authenticating to the reddit API via OAuth 2 by August 3, 2015. After that date, reddit.com will begin heavily throttling and/or blocking API access that is not authenticated with an OAuth 2 access token*.
https://www.reddit.com/message/messages/4nt70b
Right now I have:
(Usernames aren't case sensitive for mentions.)
Edit: Also got /u/IRCR_Info_Bot_ for testing another thing. Probably shouldn't use that for this though.
In post_comment()
, and maybe CommentScanner.post_reply()
.
It's been getting a lot of 500, 503, and 504 errors lately. These make comment posting fail, but the finally
clause in those functions updates the database anyway. Need to add checks to see if the comment actually got posted.
(Originally, it would retry until it posted without error. Sometimes it would error and still post the comment, leading to massive spam. The current overly-sensitive check fixed that. See #4 (comment))
At the moment is fails with AttributeError: '<class 'praw.objects.Redditor'>' has no attribute 'created_utc'
Fix that, and maybe add a separate remark for them.
https://www.reddit.com/r/isrconspiracyracist/comments/2zntjv/-/cpknj26?context=3
Solution: detect when it goes over the character limit and split into multiple comments.
In make_normal_info()
.
Version 2.1.19 of praw is outdated. Version 2.1.21 was released Thursday March 26, 2015.
Message from git push heroku
:
! Cedar-10 will reach end-of-life on November 4th, 2015.
! Upgrade to Cedar-14 at your earliest convenience.
! For more information, check out the following Dev Center article:
! https://devcenter.heroku.com/articles/cedar-14-migration
https://www.reddit.com/message/messages/4nt70b
Would also allow commenting in other subreddits if that's something we want to do.
Remove the config file from the code repository and move it to a subreddit wiki page, much like /u/AutoModerator. The would make it easier to change the settings, make the code a bit more generic, and make the repository ‘safe for work’. (The current config file is pretty nasty. Working on the bot in public has already caused me at least one mildly awkward situation IRL).
No timeline for when this might actually happen.
Either reload every so often automatically, or watch PMs for commands.
Log to a file as well as printing to stdout.
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.