Sopel(已替代)的频道日志插件
项目描述
sopel-chanlogs
Sopel IRC机器人的频道日志插件
此包不再接收更新。请升级到Sopel 8.0+,并在您能够这样做时升级到sopel-chanlogs。
要求
sopel-chanlogs仅需要Sopel 7.x本身。
使用
从PyPI安装包
pip install sopel-modules.chanlogs
使用sopel-plugins enable chanlogs命令启用,如果您的机器人配置需要的话。
配置
所有设置都是可选的,默认值合理。
- dir
- 频道日志存储目录的路径。默认~/chanlogs
- by_day
- 按日分割日志文件。默认True
- privmsg
- 记录私聊消息。默认False
- microseconds
- 在日志时间戳中包含微秒。默认False
- localtime
-
尝试使用首选时区(机器人的core.default_timezone)而不是UTC。默认False
请注意 Sopel的默认default_timezone是UTC。
高级配置
可以使用此列表中的相关设置覆盖日志行模板
message_templateaction_templatejoin_templatepart_templatequit_templatenick_templatetopic_template
每个模板都使用以下{占位符}值进行格式化
- 触发器,包括其所有属性(参见Sopel文档)
- ISO格式的
date - ISO格式的
time - 完整的ISO格式的
datetime
为了方便,message_template也接受一个message占位符。
请查阅插件代码以获取当前默认模板。
项目详情
关闭
哈希值 for sopel_modules.chanlogs-0.2.3.post0-py3-none-any.whl
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | ad2fe9e452612d4854e7155241642719adf31ef58d45f90ad608ab62738f46ee |
|
| MD5 | b6fce052348cbb52227c3bf29360650a |
|
| BLAKE2b-256 | 413169eb8fde3ffdc241d0c5dd649006c761cc8f9841c5b6e0ccf159c5595861 |