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 查看哈希值)
关闭
sopel-remind-0.3.0.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 21ae0105da5864ee756baa87fe01d92233f28b8526ac741581a41722810753d1 |
|
MD5 | af81dee43befe3957d0b14010813ff00 |
|
BLAKE2b-256 | 910ddf3ec8d0def90b190f83557cbde5aba6c985a608ce5aca6e9bbfd5a21746 |
关闭
sopel_remind-0.3.0-py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | cbd317b2a01794f1fc0bd5ee1558024ff9bcdd601f578554c8ee2bf36f6063b1 |
|
MD5 | 92e5fd716485968d203085c5e2875d92 |
|
BLAKE2b-256 | 217d20c990389148a1a9e8fb299fbb78dbef7449b0dc7291c3b51aa5cf3bdf31 |