Skip to content

Plugin for Sopel that lets users slap each other in fun ways

License

Notifications You must be signed in to change notification settings

sopel-irc/sopel-slap

Repository files navigation

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.

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.