Git Product home page Git Product logo

pcmrbot_public's People

Contributors

eegras avatar

Watchers

 avatar  avatar

pcmrbot_public's Issues

Enable use of development environment

  1. Move 'lastseen' stuff into the DB instead of a file for portability.
  2. Copy PCMRBot's server to a VM http://www.vmware.com/products/converter.html
  3. Figure out how to get SSH working in Sublime Text 3 for free ( winscp? )
  4. Make different GitHub authentication keys for prod and dev ( read only, read and write )
  5. Change hostname of Dev to be different
  6. 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
  7. Prevent 'PCMRBot is down' notification from triggering in dev
  8. Change "PCMRBot startup" Slack notification to denote whether prod or dev
  9. Change traceback Slack message to denote whether prod or dev

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.

https://www.reddit.com/r/pcmasterrace/search?q=Simple+Questions+Thread+subreddit%3Apcmasterrace+author%3AAutoModerator&restrict_sr=on&sort=new&t=all

Maybe just cache the DSQ's ID when it's posted. Save a query ( and it's a search query too ).

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.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.