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.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.1.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

sopel_rep-1.1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file sopel_rep-1.1.0.tar.gz.

File metadata

  • Download URL: sopel_rep-1.1.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.4

File hashes

Hashes for sopel_rep-1.1.0.tar.gz
Algorithm Hash digest
SHA256 366ff335b902574b50e33bab7dbb7515823211d72fbede2ab7dd76f9478724ac
MD5 92861e82cdb20a47f6b1ad9825b45b40
BLAKE2b-256 8e2ec6789e016593fee633939be759b07b11c92767ed09f06497ab4ddeb00eec

See more details on using hashes here.

Provenance

File details

Details for the file sopel_rep-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: sopel_rep-1.1.0-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.4

File hashes

Hashes for sopel_rep-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 25bec44ed2b7e284dbf886af68175bc6ebe4658ef18180fb1b138124f37f4ca8
MD5 aec515f62eaabf00558071a723c60eb2
BLAKE2b-256 397dfc73662a41163ac0111a16d2a73097b0c322fe0c45ad9ad4dbdaaa4f90f3

See more details on using hashes here.

Provenance

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