跳转到主要内容

Sopel的提醒插件

项目描述

Sopel插件 .in 命令

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

.at 命令

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

.in 命令接受从天到秒的时间单位

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

.at 命令支持时区,并尝试使用用户设置的时区。如果未找到,则使用通道设置的时区。如果未设置,则假设UTC+0。

当使用 .at 与过去的小时一起时,命令将假设明天而不是今天:当是上午10点时设置上午9点的提醒将会创建一个明天的上午9点的提醒。

您也可以使用日期而不是时间,或者您可以使用两者,放在时间之前或之后

.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

仅传递日期将在该日期设置提醒,时间为当前时间(未调整夏令时/日光节约时)。

安装

推荐安装此插件的方式是使用 pip

$ pip install sopel-remind

请注意,此插件需要 Python 3.7+ 和 Sopel 7.1+。它不会在 Sopel 版本不支持的环境中工作。

从内置迁移

如果您使用了 Sopel 7.1(或任何早期版本)及其内置的“提醒”插件,您可能希望将提醒迁移到新插件。为此,您可以使用 sopel-plugins configure remind 命令并允许脚本执行迁移。这将从原始文件导入提醒(通过添加 .bk 后缀)并重命名它。

项目详情


下载文件

下载适合您平台的文件。如果您不确定该选择哪一个,请了解更多关于 安装软件包 的信息。

源代码分发

sopel-remind-0.3.0.tar.gz (14.3 kB 查看哈希值)

上传时间 源代码

构建分发

sopel_remind-0.3.0-py3-none-any.whl (9.8 kB 查看哈希值)

上传时间 Python 3

支持