Skip to main content

upcoming-games

Reddit bot to update sidebar for /r/IGN. Can be configured for a variety of uses.

Usage

  1. Install Python 3.6 or greater if you have not already.

  2. Install the bot with pip install aav.upcoming-games. You may need to use sudo or pip3 or --user depending on your permissions, i.e. if you do not have sudo permissions and you also have Python 2 installed, you may need to use pip3 install --user aav.upcoming-games.

  3. Obtain a Reddit client ID and client secret from https://reddit.com/prefs/apps on the account you want to use for the bot.

  4. Set up your configuration file and template as mentioned in the ‘Configuration’ section.

  5. Run the bot from the command line with the full path to your config file: upcoming-games "/home/aav/my.yaml"

Developer Usage

  1. Install Python 3.6 or greater if you have not already.

  2. Install the bot with pip install aav.upcoming-games. You may need to use sudo or pip3 or --user depending on your permissions, i.e. if you do not have sudo permissions and you also have Python 2 installed, you may need to use pip3 install --user aav.upcoming-games.

  3. import upcoming_games

  4. You can use any of the three functions: get_all_games, get_markdown, post_table, and the class UpcomingGame as desired.

Configuration

Here is the default configuration file:

general:
  silent: False
  time_period: "7d"
  systems: []
  game_limit: 10
  table_format: "short"

reddit:
  client_id: "..."
  client_secret: "..."
  subreddit: "..."
  scripthost: "..."
  password: "..."
  post_type: "sidebar"
  template: 'path/to/template.txt'

Here’s what each setting is for:

  • general

    • silent - True if you don’t want any script output.

    • time_period - Valid time period for upcoming games (can be one of 7d, 1m, 3m, 6m, 12m, all).

    • system - List of consoles you want to include releases for. Empty means include all.

    • game_limit - Number of games you want for the Markdown table.

    • table_format - short for only the game name and first release, long for system details.

  • reddit

    • client_id - Your reddit bot’s client ID.

    • client_secret - Your reddit bot’s client secret.

    • subreddit - The subreddit (your must be a moderator) to post to/update the sidebar.

    • scripthost - The username for the bot account you registered for the client ID on.

    • password - The password for the bot account.

    • post_type - sidebar to update the sidebar, sticky to make a ‘bottom’ stickied post.

    • template - the full path to the template you want to use.

Note the template must contain somewhere in it the text %%%TABLE%%%, as this is where the Markdown table will be put. If no path or an invalid path is specified, the template used will be blank, i.e. it will only contain the Markdown table, nothing else.

Metadata

Release files for aav.upcoming-games 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aav.upcoming-games 0.1.0
File Size Uploaded Provenance
aav.upcoming-games-0.1.0.tar.gz 4.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aav.upcoming-games 0.1.0
File Interpreter ABI Platform
aav.upcoming_games-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.4 kB

Release files / aav.upcoming-games-0.1.0.tar.gz

Download URL aav.upcoming-games-0.1.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
32f85f92a70e9a9f6543b2c465d594c8ec703e6bf43f3f110f9c5583548376c3
BLAKE2b-256 checksum
How to use checksums
78b321b134c7692f08518808b6d00356094d3ffa1d707fe6a8909cc4a0387b09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / aav.upcoming_games-0.1.0-py3-none-any.whl

Download URL aav.upcoming_games-0.1.0-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5dd0d8ecaf5269c8a877201c0056d9886c12b770ff86ce71c0afa1c45a4bb7ef
BLAKE2b-256 checksum
How to use checksums
5878afc4cdffa533d3bd1d26df64e6dcf0ab17d96f4c1090f84ba10de9eafda6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for aav.upcoming-games 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page