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
danbooru: Supports Danbooru (https://danbooru.donmai.us) links & searchesgelbooru: Supports Gelbooru (https://gelbooru.com) links & searches
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/gelbooruoutput (#15)
Changed:
0.1.4
Fixed:
- Danbooru search handling was broken (#10)
0.1.3
Fixed:
- URL pattern for
danboorubecame too strict (#9)
0.1.2
Changed:
- URL patterns are stricter (#8)
Fixed:
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62c48546d2b3a80ac0289fcece1226f860ba84a259045804d67ae196ea32d07d
|
|
| MD5 |
a5b4bef9646dad98c8306159d1a4805c
|
|
| BLAKE2b-256 |
13c0be2fb8d17fe66dd177f387b2947769dcf793a6f55f9c1f20ce57f1d0cd1f
|
Provenance
The following attestation bundles were made for sopel_boorus-0.1.6.tar.gz:
Publisher:
pypi.yml on dgw/sopel-boorus
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sopel_boorus-0.1.6.tar.gz -
Subject digest:
62c48546d2b3a80ac0289fcece1226f860ba84a259045804d67ae196ea32d07d - Sigstore transparency entry: 1394945867
- Sigstore integration time:
-
Permalink:
dgw/sopel-boorus@4512f9130f9175b5315c83276ba8e9797f4e4036 -
Branch / Tag:
refs/tags/v0.1.6 - Owner: https://github.com/dgw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@4512f9130f9175b5315c83276ba8e9797f4e4036 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1293e95764a388a3a8ea50669bc888ab07003218a758d4ba9ed17a418c398014
|
|
| MD5 |
9fc4e2bf3f1532591f55786a6d17443d
|
|
| BLAKE2b-256 |
6722eceb093b5e9e72e07ad3c0295ed5e2006340869ee01e7cd9c59fe4110360
|
Provenance
The following attestation bundles were made for sopel_boorus-0.1.6-py3-none-any.whl:
Publisher:
pypi.yml on dgw/sopel-boorus
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sopel_boorus-0.1.6-py3-none-any.whl -
Subject digest:
1293e95764a388a3a8ea50669bc888ab07003218a758d4ba9ed17a418c398014 - Sigstore transparency entry: 1394945875
- Sigstore integration time:
-
Permalink:
dgw/sopel-boorus@4512f9130f9175b5315c83276ba8e9797f4e4036 -
Branch / Tag:
refs/tags/v0.1.6 - Owner: https://github.com/dgw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@4512f9130f9175b5315c83276ba8e9797f4e4036 -
Trigger Event:
release
-
Statement type: