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.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.3.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

sopel_boorus-0.1.3-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sopel_boorus-0.1.3.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.7

File hashes

Hashes for sopel_boorus-0.1.3.tar.gz
Algorithm Hash digest
SHA256 15288502298c078bc98112caffca58c1af61473a68aef13cf556300182e7197a
MD5 b86b429be90d2f9a28ffb768bec4fa01
BLAKE2b-256 979ecf2fa2d58669d18f420632f6cb840dcee9709024e868f97bfc367e656d15

See more details on using hashes here.

File details

Details for the file sopel_boorus-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: sopel_boorus-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.7

File hashes

Hashes for sopel_boorus-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9dd6c2b78823dbaf843a8cefb0dde0f5af59c128d41e6a060fdf90719e2d24d3
MD5 7b025831aa34efd52df7e0b42c56bf0e
BLAKE2b-256 948700507f7987edca07bfa271daa3d4e399acf3d2530d092de031113128ed2f

See more details on using hashes here.

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