Skip to main content

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: 3600
  • admin_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 score
  • nick-- 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
    • cooldown controls how often (in seconds) each user can use the plugin (by default, 3600)
    • admin_cooldown controls whether bot admins are subject to the cooldown (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.

Metadata

Release files for sopel-rep 1.2.0

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-rep 1.2.0
File Size Uploaded
sopel_rep-1.2.0.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sopel-rep 1.2.0
File Interpreter ABI Platform
sopel_rep-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.6 kB

Release files / sopel_rep-1.2.0.tar.gz

Download URL sopel_rep-1.2.0.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7c39bc54c21812e7ba5996bfa399ca0458abf086517611c16cc552394bbfd2d3
BLAKE2b-256 checksum
How to use checksums
0b10cbe8e63c26576e869f7b493caa2f2ff0a98c4c4dafed89224d882922d003
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

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 May 15, 2025.

Transparency log

Release files / sopel_rep-1.2.0-py3-none-any.whl

Download URL sopel_rep-1.2.0-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f02895c96669df61ad17b0f674666bfe9ef4328e50755134114af9abb58a68dd
BLAKE2b-256 checksum
How to use checksums
2987da444a4ea297d5a017104a751bd00867a276b645c701db221f826cc8ce8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

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 May 15, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.0

2 release files

1.0.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