Skip to main content

A reddit plugin for Sopel IRC bots.

Project description

sopel-reddit

A reddit plugin for Sopel IRC bots.

Installation

Stable version:

pip install sopel-reddit

From source

pip install -e path/to/sopel-reddit

# optional: for development
pip install -r dev-requirements.txt

Note: Running the test suite with pytest -v tests/ requires both sopel-reddit and sopel itself to be installed in the same venv.

Configuration

[reddit]
slash_info = True
# Allow expansion of inline references like `u/RandomRedditor` or `r/eyebleach`
# (links are always expanded)

app_id = abcdef0123456789
# Optional custom app ID for the reddit API

The app_id setting is provided mostly for future-proofing after API policy changes announced by Reddit Inc. in April 2023. It exists so possible future API limitations can be worked around by users without requiring a package update. As of the time this package version was published, the app_id setting does not need to have a value.

Special thanks

All contributors to the original reddit plugin for Sopel.

Version 1.1.0

Changed:

  • Improve consistency of when links are included in output (#9, #10)
  • Improve ordering of user output fields (#11)
  • Try harder to get a useful subreddit description (#13)
  • Try harder to fetch source submission for video links (#14)

Fixed:

  • Capitalization in generated subreddit URL (#13)

Version 1.0.1

Added:

  • Handle new subdomain (#3)
  • Handle image links with post slugs (#6)

Changed:

  • Improve URL-matching test coverage (#3, #4, #6)

Initial release - 1.0.0

Based on reddit.py from Sopel's built-ins as of upstream commit 7ad23ec.

Added:

  • Optional app_id setting (#1)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sopel-reddit-1.1.0.tar.gz (9.9 kB view hashes)

Uploaded Source

Built Distribution

sopel_reddit-1.1.0-py3-none-any.whl (8.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page