Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sopel_slap-0.4.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

sopel_slap-0.4.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file sopel_slap-0.4.1.tar.gz.

File metadata

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

File hashes

Hashes for sopel_slap-0.4.1.tar.gz
Algorithm Hash digest
SHA256 318fbe518f3f89089aa5866a15c8a66e195f996230958edec862c902890709f1
MD5 f00cc3eaf5e05e4098acc219648ce47e
BLAKE2b-256 32e9bc764a664afed2a2b57e7e92db1f73965aa69fe23b39b80f7ccc8d05a9cf

See more details on using hashes here.

File details

Details for the file sopel_slap-0.4.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for sopel_slap-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 42b816a89862256e6eefd53910c3eb11afa5f2500c049f3afd6f6a606a238005
MD5 cc956c533602ee16d1ddef7c16766442
BLAKE2b-256 b8ee53b8a8972b91de04c19921c80553fc253b5c477e6df947d3bec191ac9cfd

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