Skip to main content

xkcd plugin for Sopel IRC bots.

Project description

sopel-xkcd

xkcd plugin for Sopel IRC bots.

Features & Usage

This plugin provides lookup commands and automatic URL expansion for xkcd comics in Sopel IRC bots.

  • .xkcd — Get a random comic
  • .xkcd <number> — Get a specific comic by number (e.g., .xkcd 303)
  • .xkcd 0 — Get the most recent comic
  • .xkcd -<n> — Get the nth-latest comic (e.g., .xkcd -1 for the previous comic)
  • .xkcd <keywords> — Search for a comic by keywords (e.g., .xkcd battery staple)
  • Posting an xkcd.com URL in chat will fetch the comic's title and alt-text

Installation

After installing Sopel, install this plugin with pip:

pip install sopel-xkcd

Configuration

No configuration is required.

Credits

This is a continuation of Sopel 8.0's built-in xkcd plugin. You can find the original file in Sopel's history.

Changelog

1.0.0

Initial release. Straight copy of Sopel 8.0's version (with minor tweaks to make it behave correctly outside of sopel.builtins).

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_xkcd-1.0.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sopel_xkcd-1.0.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file sopel_xkcd-1.0.0.tar.gz.

File metadata

  • Download URL: sopel_xkcd-1.0.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sopel_xkcd-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fac997a976ad54345847ebd3155b2920a9267e36239b7ac0290f73f404412102
MD5 45cb679b98aaae68ba5e9ee6597ab50d
BLAKE2b-256 c23be773cd87df64009ce8ad7aa172f514a5b33152a8c80dec8269824dff20b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for sopel_xkcd-1.0.0.tar.gz:

Publisher: pypi.yml on sopel-irc/sopel-xkcd

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sopel_xkcd-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: sopel_xkcd-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sopel_xkcd-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce9005631779523701a4a1e09d081e0525bd970513c1eea5ed8db1bc3622e956
MD5 7fb67788362182f8d0f8bf0046726a83
BLAKE2b-256 b467849a572dfc1522672ec42d80afddcba471c55d3eab9e3f95056372b65504

See more details on using hashes here.

Provenance

The following attestation bundles were made for sopel_xkcd-1.0.0-py3-none-any.whl:

Publisher: pypi.yml on sopel-irc/sopel-xkcd

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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