Giter Site home page Giter Site logo

q-killer_deluxe's Introduction

REQUIREMENTS

  1. PRAW 4+
  2. SlackClient

How to use

  1. Place Q-Killer script in a new directory
  2. Place your Slack bots token on line 17 of qkiller.py
  3. Fill out the info in auth.json (see "Creating a Script Application below)
  4. Edit the message to deliver and the channel name in settings.json Note - if you want to mention all active users, you must use <!here> instead of @here. Same applies for @channel mentions - use <!channel> instead.
  5. OPTIONAL: Adjust alert parameter (NUM_TO_ALERT) on line 21. This decides how many reports must be in queue before an alert is triggered
  6. Start the script with nohup by running nohup python3 qkiller.py & (Linux)

If you only have 1 version of python installed, just use python instead of python3 when starting the script.

WINDOWS - To run this script on a windows server or desktop, you can use pythonw to run it in the background.

INFO

This script was made by /u/zebradolphin5 for the /r/GlobalOffensive mod team, to alert us in Slack if the modqueue reaches 15 or more items. Use nohup to run in the background and ignore the hangup signal. (See 'How to use' above)

Creating A Script Application

To obtain a client ID and client secret, login to the Reddit account that will be using the script, and go to preferences>apps. Click on "Create a new app" (may say "Create another app") and SELECT THE 'Script' TYPE (not 'web' or 'installed'. Name/description can be whatever. You can leave the about URL blank, but you still must provide a redirect URI even though it's not needed for a script application. For that, you can just put http://localhost/. The string at the top left (underneath what should say personal use script) will be your client_ID. Client secret is listed next to the 'Secret' field.

q-killer_deluxe's People

Stargazers

 avatar

Watchers

 avatar

Forkers

daniel-jones

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.