Skip to main content

Image board (booru) plugins for Sopel IRC bots.

Project description

sopel-boorus

Image board (booru) plugins for Sopel IRC bots.

Installing

Releases are hosted on PyPI, so after installing Sopel, all you need is pip:

$ pip install sopel-boorus

Depending on your Sopel bot's configuration, you might need to enable or disable the specific booru plugins (see below) that you want your bot to use. You can do so with the sopel-plugins command, e.g.:

$ sopel-plugins enable gelbooru

Booru plugins in this collection

Installation requirements

The sopel-boorus package is written with Python 3 and Sopel 8.0+ in mind. Installation on Python 2, or usage with Sopel 7.x, is not supported.

Using

danbooru

Note: Danbooru strictly limits search capabilities for anonymous users, making this plugin more useful for link handling than searching, though it will be able to handle a tag or two just fine if you want a random pic.

Commands: .danb or .danbooru to search for a random post by tag(s)

Links: Handles post links, e.g. https://danbooru.donmai.us/posts/<post_id>

gelbooru

Commands: .gelb or .gelbooru to search for a random post by tag(s)

Links: Handles post links, e.g. https://gelbooru.com/index.php?page=post&s=view&id=<post_id>

Changelog

0.1.6

Changed:

  • Provide a custom user-agent when calling booru APIs (#20)

0.1.5

Added:

  • Post ID number in danbooru/gelbooru output (#15)

Changed:

  • Don't append rating:general to md5: queries (#16)
  • Cleaned up search_tags() abstraction (#11)

0.1.4

Fixed:

  • Danbooru search handling was broken (#10)

0.1.3

Fixed:

  • URL pattern for danbooru became too strict (#9)

0.1.2

Changed:

  • URL patterns are stricter (#8)

Fixed:

  • Unescape HTML entities in tag names (#7)
  • Corrected post rating colors (#3)

0.1.1

Fixed:

  • Handle more error cases (#1)

0.1.0

First release of sopel-boorus plugin collection.

Launch plugins are danbooru and gelbooru.

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_boorus-0.1.6.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

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

sopel_boorus-0.1.6-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file sopel_boorus-0.1.6.tar.gz.

File metadata

  • Download URL: sopel_boorus-0.1.6.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for sopel_boorus-0.1.6.tar.gz
Algorithm Hash digest
SHA256 62c48546d2b3a80ac0289fcece1226f860ba84a259045804d67ae196ea32d07d
MD5 a5b4bef9646dad98c8306159d1a4805c
BLAKE2b-256 13c0be2fb8d17fe66dd177f387b2947769dcf793a6f55f9c1f20ce57f1d0cd1f

See more details on using hashes here.

Provenance

The following attestation bundles were made for sopel_boorus-0.1.6.tar.gz:

Publisher: pypi.yml on dgw/sopel-boorus

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_boorus-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: sopel_boorus-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for sopel_boorus-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1293e95764a388a3a8ea50669bc888ab07003218a758d4ba9ed17a418c398014
MD5 9fc4e2bf3f1532591f55786a6d17443d
BLAKE2b-256 6722eceb093b5e9e72e07ad3c0295ed5e2006340869ee01e7cd9c59fe4110360

See more details on using hashes here.

Provenance

The following attestation bundles were made for sopel_boorus-0.1.6-py3-none-any.whl:

Publisher: pypi.yml on dgw/sopel-boorus

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