Skip to main content

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

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_rep-1.2.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sopel_rep-1.2.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

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

Hashes for sopel_rep-1.2.0.tar.gz
Algorithm Hash digest
SHA256 7c39bc54c21812e7ba5996bfa399ca0458abf086517611c16cc552394bbfd2d3
MD5 55d0cb9bcaf062fef6701ce321a21a34
BLAKE2b-256 0b10cbe8e63c26576e869f7b493caa2f2ff0a98c4c4dafed89224d882922d003

See more details on using hashes here.

Provenance

The following attestation bundles were made for sopel_rep-1.2.0.tar.gz:

Publisher: trusted-publishing.yml on dgw/sopel-rep

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for sopel_rep-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f02895c96669df61ad17b0f674666bfe9ef4328e50755134114af9abb58a68dd
MD5 21a5ad7ad945b84f6a3b33813d8bfdbc
BLAKE2b-256 2987da444a4ea297d5a017104a751bd00867a276b645c701db221f826cc8ce8b

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page