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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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