Karma plugin for Sopel IRC bots
Project description
sopel-rep
Karma plugin for Sopel IRC bots.
Lets users "luv" and "h8" other users on IRC. Functional clone of a mIRC script someone used in a channel I was in. (Never saw their code, not that I'd want to do a port of anything written for mIRC...)
Requirements
This plugin is compatible with Sopel 7.1 or higher. However, even though Sopel 7 supports many legacy Python versions back to 2.7, the plugin is only tested against current versions of Python (3.8+).
Installing
Releases are hosted on PyPI, so after installing Sopel, all you need is pip:
$ pip install sopel-rep
Configuring
The easiest way to configure sopel-rep is via Sopel's configuration
wizard—simply run sopel-plugins configure rep and enter the values for which
it prompts you. Settings are described below:
cooldown: How long in seconds each user must wait after changing anyone's rep before they are permitted to do so again.
Default: 3600admin_cooldown: Whether the bot's owner & admins must obey the cooldown.
Default: true
Usage
Commands
.luv nick: Adds +1 to the user's reputation score.h8 nick: Adds -1 to the user's reputation score
Actions
/me <3 nick: Adds +1 to the user's reputation score/me </3 nick: Adds -1 to the user's reputation score
Inline karma
nick++anywhere in a message adds +1 to the user's reputation scorenick--anywhere in a message adds -1 to the user's reputation score
Changelog
1.2.0
Changed:
- Require Sopel 8+ and Python 3.8+ (#42)
Internal:
- Refactor the code to unify helpers into a "manager" class (#42, #44)
- Use newer Sopel decorator features to simplify searching for inline
++/--commands (#43)
1.1.0
Added:
- Cooldown configuration settings
cooldowncontrols how often (in seconds) each user can use the plugin (by default, 3600)admin_cooldowncontrols whether bot admins are subject to thecooldown(by default, yes)
1.0.0
First release of sopel-rep.
This plugin existed for about 9 years as a standalone rep.py file. Now,
finally, it's available as an installable package.
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_rep-1.2.0.tar.gz.
File metadata
- Download URL: sopel_rep-1.2.0.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c39bc54c21812e7ba5996bfa399ca0458abf086517611c16cc552394bbfd2d3
|
|
| MD5 |
55d0cb9bcaf062fef6701ce321a21a34
|
|
| BLAKE2b-256 |
0b10cbe8e63c26576e869f7b493caa2f2ff0a98c4c4dafed89224d882922d003
|
Provenance
The following attestation bundles were made for sopel_rep-1.2.0.tar.gz:
Publisher:
trusted-publishing.yml on dgw/sopel-rep
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sopel_rep-1.2.0.tar.gz -
Subject digest:
7c39bc54c21812e7ba5996bfa399ca0458abf086517611c16cc552394bbfd2d3 - Sigstore transparency entry: 213703682
- Sigstore integration time:
-
Permalink:
dgw/sopel-rep@53566acdd1f258cec316dd208ce3a8a59a1ed49f -
Branch / Tag:
refs/tags/v1.2.0 - Owner: https://github.com/dgw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
trusted-publishing.yml@53566acdd1f258cec316dd208ce3a8a59a1ed49f -
Trigger Event:
release
-
Statement type:
File details
Details for the file sopel_rep-1.2.0-py3-none-any.whl.
File metadata
- Download URL: sopel_rep-1.2.0-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f02895c96669df61ad17b0f674666bfe9ef4328e50755134114af9abb58a68dd
|
|
| MD5 |
21a5ad7ad945b84f6a3b33813d8bfdbc
|
|
| BLAKE2b-256 |
2987da444a4ea297d5a017104a751bd00867a276b645c701db221f826cc8ce8b
|
Provenance
The following attestation bundles were made for sopel_rep-1.2.0-py3-none-any.whl:
Publisher:
trusted-publishing.yml on dgw/sopel-rep
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sopel_rep-1.2.0-py3-none-any.whl -
Subject digest:
f02895c96669df61ad17b0f674666bfe9ef4328e50755134114af9abb58a68dd - Sigstore transparency entry: 213703684
- Sigstore integration time:
-
Permalink:
dgw/sopel-rep@53566acdd1f258cec316dd208ce3a8a59a1ed49f -
Branch / Tag:
refs/tags/v1.2.0 - Owner: https://github.com/dgw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
trusted-publishing.yml@53566acdd1f258cec316dd208ce3a8a59a1ed49f -
Trigger Event:
release
-
Statement type: