Mastodon的Sopel插件
项目描述
sopel-mastodon
用于Sopel的Mastodon插件。
此插件查找类似 https://host/@user/12345
或 https://host/@user@homehost/12345
的URL,然后尝试查询位于 host
的Mastodon API以获取有关特定推文的详细信息。
安装
$ pip install sopel-mastodon
用法
只需发送一个推文的链接!
<SnoopJ> check out this toot: https://mastodon.social/@Gargron/1
<terribot> [mastodon] @Gargron: «Hello world»
0.1.1与1.0.0之间的更改
- 转换为入口点插件(感谢dgw)
- 指示推文的附件
- 使用Sopel内置的长消息截断功能
- 尽可能多地使用IRC消息来总结推文
0.1.0与0.1.1之间的更改
- 放宽URL正则表达式,因此不需要Mastodon实例主机名的列表
- 任何类似
https://host/@user/12345
或https://host/@user@homeinstance/12345
的URL都视为可能的Mastodon URL
- 任何类似