Skip to main content

Reminder plugin for Sopel

Project description

Sopel plugin .in command:

[17:30] Exirel: .in 2h go to the grocery store
[17:30] Sopel: Exirel: I will remind you that at 19:30:00
(... 2h later ...)
[19:30] Sopel: Exirel: go to the grocery store

And .at command:

[17:30] Exirel: .at 19:30 go to the grocery store
[17:30] Sopel: Exirel: I will remind you that at 19:30:00
(... 2h later ...)
[19:30] Sopel: Exirel: go to the grocery store

The .in command accepts time units ranging from days to seconds:

.in 1d2h In one day and 2 hours
.in 2h59m3s In 2 hours, 59 minutes, and 3 seconds

The .at command is timezone aware, and tries to use the timezone set for the user. If not found, it will use the timezone set for the channel. If none is set, it will assume UTC+0.

When using .at with a past hour, the command will assume tomorrow instead of today: setting a reminder for 9 a.m. when it’s 10 a.m. will create a reminder for 9 a.m. tomorrow.

You can also use a date instead of a time, or you can use both, placed before or after the time:

.at 2023-06-27 Python 3.7 EOL
.at 12:00 2023-06-27 Python 3.7 EOL
.at 2023-06-27 12:00 Python 3.7 EOL

Passing only a date will set a reminder on that date with the current time (not adjusted for summer/daylight-savings).

Install

The recommended way to install this plugin is to use pip:

$ pip install sopel-remind

Note that this plugin requires Python 3.7+ and Sopel 7.1+. It won’t work on Python versions that are not supported by the version of Sopel you are using.

Migration from built-in

If you used Sopel 7.1 (or any previous version) and its built-in “remind” plugin, you may want to migrate your reminders to the new plugin. To do that, you can run the sopel-plugins configure remind command and allow the script to perform the migration. This will import the reminders from the original file before renaming it (by adding the .bk suffix).

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-remind-0.2.0.tar.gz (14.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_remind-0.2.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file sopel-remind-0.2.0.tar.gz.

File metadata

  • Download URL: sopel-remind-0.2.0.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for sopel-remind-0.2.0.tar.gz
Algorithm Hash digest
SHA256 aade845ebdea088d37a0eada6ca1cfd1ea2a24819c810ae98a0e01cdd0f87517
MD5 08ea491aceaed233380d4687d0074dd8
BLAKE2b-256 944f7ef565cb7a53db387326ee8219af6fbddc7729e08d381f3536e7e18c614d

See more details on using hashes here.

File details

Details for the file sopel_remind-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: sopel_remind-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for sopel_remind-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8bdd80a2c30e177bfc0bba19341b859cbefcd457a5ad4ec5caf3160a18a3ceab
MD5 5e3ea69e2a3dc88059c163ef116530b3
BLAKE2b-256 02fa90c4c379fe610081d200ad996463c690a38eaaace72fcf41081ce7d6d18e

See more details on using hashes here.

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