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
Right now, there is only one option:
verbs
: A list of verbs to choose from when slapping people. Overrides the default list if set.
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.)
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
Hashes for sopel_slap-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17e800b1e8980319c0614f54874a4a429f76f3cc3f80a213fb4fc1ffc44dcb98 |
|
MD5 | 6d581d3db4f1dce30587a3f7677a66bb |
|
BLAKE2b-256 | d0faf0bc0f69643a6dc952ca81755cc4bc3805b954a15e73090e7f01fb4c34ac |