Skip to main content

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.

Metadata

Release files for sopel-slap 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sopel-slap 0.4.2
File Size Uploaded
sopel_slap-0.4.2.tar.gz 5.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sopel-slap 0.4.2
File Interpreter ABI Platform
sopel_slap-0.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 11.7 kB

Release files / sopel_slap-0.4.2.tar.gz

Download URL sopel_slap-0.4.2.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9c28d61711e5622dfba189e867925ba52e67057fe16a20a008e4021a3ab26b90
BLAKE2b-256 checksum
How to use checksums
a5eba891394cacbc2c32bcd415b9ba2f6dd44e3427dd5c48a489ec4cad315f71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 7, 2025.

Transparency log

Release files / sopel_slap-0.4.2-py3-none-any.whl

Download URL sopel_slap-0.4.2-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5faa3d69d88aad0c1f8b4dd089a6af8ac2ed0f92764db4d27c3eda58a3cf3a3a
BLAKE2b-256 checksum
How to use checksums
dc4b1524cc4bc55c3f11404d5a2a7a8ab50b1445c81d7f215e2c2e88e534d6d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 7, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page