pcmrbot_public's People
pcmrbot_public's Issues
Sticky Watcher not working
Currently the method to keep DSQ stickied if there's an opening doesn't work properly. Was trying to sticky the current DSQ even though it was already stickied. I've disabled it currently.
Keep DSQ stickied unless there are two stickies
Zeug suggested that PCMRBot keep the Daily SImple Questions thread stickied if there is a spot for it.
Every 10 minutes, after checkForNewFrontPage() ( make checkForNewFrontPage() return the front page so we don't have to get it twice ) see if two of the posts are stickied. If not, find the latest DSQ and sticky that.
Maybe just cache the DSQ's ID when it's posted. Save a query ( and it's a search query too ).
make http://pcmrbot.eegras.com/dsq go to the current DSQ
Add mod calls for removing due to rule infractions
!rule([0-9\. ]*)
then split the match on spaces to get the desired rules.
Change to using dhash instead of ahash
http://www.hackerfactor.com/blog/?/archives/529-Kind-of-Like-That.html
Maybe use both for the time being.
Interface PCMRBot with Toolbox's usernotes
https://www.reddit.com/r/pcmasterrace/wiki/edit/usernotes
Usernotes are JSON based with "blob" being gzipped data. Easy enough for PCMRBot to decode that. I'd like PCMRBot to have access to that data, and to be able to modify it ( for marking giveaway banned users, for example ).
Enable use of development environment
- Move 'lastseen' stuff into the DB instead of a file for portability.
- Copy PCMRBot's server to a VM http://www.vmware.com/products/converter.html
- Figure out how to get SSH working in Sublime Text 3 for free ( winscp? )
- Make different GitHub authentication keys for prod and dev ( read only, read and write )
- Change hostname of Dev to be different
- Key off of hostname ( or other environment variable ) to switch which config file to use
Have Dev interact with /r/eegras only. Have Prod never interact with /r/eegras - Prevent 'PCMRBot is down' notification from triggering in dev
- Change "PCMRBot startup" Slack notification to denote whether prod or dev
- Change traceback Slack message to denote whether prod or dev
Research image fingerprinting for duplicate detection
Have PCMRBot post modmails to a logging sub
Old modmail has an rss feed. New modmail doesn't. This has to go through PCMRBot now. Need to wait for praw-dev/praw#703 to accomplish this.
Automated stickying of posts
Sample syntax of wiki page:
{
"threads": {
"0": {
"name": "Daily Simple Questions Thread",
"link": "dsq",
"stickySlot": "1",
"lastSticky": "0"
},
"1": {
"name": "Interview with Pedro, Founder of the PC Master Race Subreddit.",
"link": "https://www.youtube.com/watch?v=ppaOWVTW1mA&feature=youtu.be",
"stickySlot": "0",
"lastSticky": "0"
},
"2": {
"name": "PCMR GOTY 2015 Results!",
"link": "https://www.reddit.com/r/pcmasterrace/comments/4aog2s/pcmr_goty_2015_results/",
"stickySlot": "1",
"lastSticky": "0"
}
}
}
Yeah, it's JSON, but I want to make some sort of automated interface to manage it.
Number is important, it takes the first non-stickied link after the last stickied thing for that stickySlot
Name will be useless until the above interface is set up.
Link is the link to the thing unless it is DSQ, then it searches for the newest DSQ
stickySlot is where it goes in the page, 0 is top 1 is second.
lastSticky is the last time that the value was stickied, for PCMRBot use only.
IsThereAnyDeal API?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.