Plugin for Sopel that lets users slap each other in fun ways
Project description
sopel-slap
Plugin for Sopel that lets users slap each other in fun ways
Installation
pip install sopel-slap
Substitute the appropriate pip command based on your environment (e.g.
pip3 or pip3.10 on systems with multiple Python versions available).
If your Sopel configuration requires it, run sopel-plugins enable slap,
passing the appropriate config name to -c if you have multiple bots.
Configuration
The easiest way to configure this plugin is via Sopel's built-in wizard:
sopel-plugins configure slap
Available settings are described below.
The verbs option
verbs is a list of verbs to choose from when slapping people. If set, it
overrides the default list.
Probably the easiest way to make a custom list is to just press Enter twice
when the config wizard asks for a list of verbs, which will add the default
list to your bot's .cfg file. Then you can use your favorite text editor.
(We're aware that Sopel's wizard doesn't have great UX when it comes to entering lists. It'll get worked on someday, probably.)
The reflexive option
reflexive is the pronoun the bot uses when someone with authorization does
.slap BotNick. By default, this is set to "itself".
Commands
- .slap
- Make the bot slap you
- .slap nickname [reason]
- Slap someone else, with an optional reason
If your bot has a non-default prefix, substitute it for . above.
Credits
This is based on the original slap.py by Michael Yanovich
from sopel-extras, dating back to the late '00s/early '10s. It's been
rewritten more or less from scratch to do things in the modern Sopel way. The
only meaningful behavior change was dropping substitution of the caller's nick
for me and myself, as it's quite possible for a real person to use either of
those as a nick and no one* should be safe from slaps!
* — No one except the bot and its admins, that is.
Project details
Release history Release notifications | RSS feed
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_slap-0.4.2.tar.gz.
File metadata
- Download URL: sopel_slap-0.4.2.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c28d61711e5622dfba189e867925ba52e67057fe16a20a008e4021a3ab26b90
|
|
| MD5 |
40c97ece32411bfbc5671a22a45203ef
|
|
| BLAKE2b-256 |
a5eba891394cacbc2c32bcd415b9ba2f6dd44e3427dd5c48a489ec4cad315f71
|
Provenance
The following attestation bundles were made for sopel_slap-0.4.2.tar.gz:
Publisher:
trusted-publishing.yml on sopel-irc/sopel-slap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sopel_slap-0.4.2.tar.gz -
Subject digest:
9c28d61711e5622dfba189e867925ba52e67057fe16a20a008e4021a3ab26b90 - Sigstore transparency entry: 193385603
- Sigstore integration time:
-
Permalink:
sopel-irc/sopel-slap@ede081465dc5abffe942aff479d85dd854c0c02b -
Branch / Tag:
refs/tags/v0.4.2 - Owner: https://github.com/sopel-irc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
trusted-publishing.yml@ede081465dc5abffe942aff479d85dd854c0c02b -
Trigger Event:
release
-
Statement type:
File details
Details for the file sopel_slap-0.4.2-py3-none-any.whl.
File metadata
- Download URL: sopel_slap-0.4.2-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5faa3d69d88aad0c1f8b4dd089a6af8ac2ed0f92764db4d27c3eda58a3cf3a3a
|
|
| MD5 |
05f977d3741497d0bfd1f2674264a3ea
|
|
| BLAKE2b-256 |
dc4b1524cc4bc55c3f11404d5a2a7a8ab50b1445c81d7f215e2c2e88e534d6d2
|
Provenance
The following attestation bundles were made for sopel_slap-0.4.2-py3-none-any.whl:
Publisher:
trusted-publishing.yml on sopel-irc/sopel-slap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sopel_slap-0.4.2-py3-none-any.whl -
Subject digest:
5faa3d69d88aad0c1f8b4dd089a6af8ac2ed0f92764db4d27c3eda58a3cf3a3a - Sigstore transparency entry: 193385607
- Sigstore integration time:
-
Permalink:
sopel-irc/sopel-slap@ede081465dc5abffe942aff479d85dd854c0c02b -
Branch / Tag:
refs/tags/v0.4.2 - Owner: https://github.com/sopel-irc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
trusted-publishing.yml@ede081465dc5abffe942aff479d85dd854c0c02b -
Trigger Event:
release
-
Statement type: