Skip to main content

A channel logging plugin for Sopel IRC bots

Project description

sopel-chanlogs

A channel logging plugin for Sopel IRC bots

Installing

Releases are hosted on PyPI, so after installing Sopel, all you need is pip:

$ pip install sopel-chanlogs

Enable the plugin with sopel-plugins enable chanlogs, if your bot configuration requires it.

Requirements

sopel-chanlogs requires only Sopel itself, version 8.0 or higher.

Usage

Configuration

The easiest way to configure sopel-chanlogs is via Sopel's configuration wizard—simply run sopel-plugins configure chanlogs and complete the prompts. All settings are optional, falling back on sensible defaults.

dir
Path to channel log storage directory. Default: ~/chanlogs
by_day
Split log files by day. Default: True
privmsg
Record private messages. Default: False
microseconds
Include microseconds in log timestamps. Default: False
localtime

Attempt to use preferred timezone (the bot's core.default_timezone) instead of UTC. Default: False

Please note that Sopel's default default_timezone is UTC.

Advanced configuration

Log line templates can be overridden using the relevant setting from this list:

  • message_template
  • action_template
  • join_template
  • part_template
  • quit_template
  • nick_template
  • topic_template

Each template is formatted using the following {placeholder} values:

  • the trigger, with all of its attributes (see Sopel's documentation)
  • the date in ISO format
  • the time in ISO format
  • the full datetime in ISO format

For convenience, the message_template also receives a message placeholder.

Please consult the plugin's code for current default templates.

Changelog

0.3.0

First release as sopel-chanlogs, replacing sopel_modules.chanlogs.

Changed:

  • Modernize packaging, target Sopel 8.0+, take advantage of new Sopel API features, and support only Python 3.8+

Meta:

  • Fixed package metadata to credit the original author(s) and current maintainer(s) correctly

0.2.3

Fixed:

  • Switch from obsolete clock.tz setting to core.default_timezone (#11)

Meta:

  • Greatly improved documentation of settings (#12)

0.2.2

Changed:

  • Replaced deprecated call to SopelMemory.contains() (#8)

0.2.1

Meta:

  • Added project README file
  • Use README as project's PyPI description

0.2.0

Changed:

  • Target Sopel 7.x (#5)

Added:

  • Support for logging topic changes (#3)
  • Support for echo-message (#4)

Fixed:

  • Install errors (#1)
  • Startup/config glitches (#2)

0.1.0

First release of sopel_modules.chanlogs.

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_chanlogs-0.3.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

sopel_chanlogs-0.3.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file sopel_chanlogs-0.3.0.tar.gz.

File metadata

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

File hashes

Hashes for sopel_chanlogs-0.3.0.tar.gz
Algorithm Hash digest
SHA256 a0c4a8da051c5c35ab0791a0de4de4d08fbe6a3e9cdbc40cc4dda19b477605af
MD5 fede1565fdc513242b4d7075e2b3b5c6
BLAKE2b-256 acb81086e74f4ecbf0491721ff978160d4494399b5b1a79487a97649a630cb21

See more details on using hashes here.

File details

Details for the file sopel_chanlogs-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sopel_chanlogs-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5d2c19481c213b38c434f3f238cc280e72e0c88691abe8cadd97b9c888af3f9
MD5 8e679567c6f884c6d8f51fbf1f9d3aaa
BLAKE2b-256 11ead5bb43c203bd3bfae90f8fc9a83257f2654449d21d3ffbf67ea867fa3d76

See more details on using hashes here.

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