NoneBot2 plugin for twitter
Project description
⚠ 插件暂不可用
因推特开启登录墙,该插件暂不可用
📖 介绍
订阅推送 twitter 推文
💿 安装
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-twitter
pdm
pdm add nonebot-plugin-twitter
poetry
poetry add nonebot-plugin-twitter
conda
conda install nonebot-plugin-twitter
打开 nonebot2 项目根目录下的 pyproject.toml
文件, 在 [tool.nonebot]
部分追加写入
plugins = ["nonebot_plugin_twitter"]
⚙️ 配置
在 nonebot2 项目的.env
文件中添加下表中的必填配置
配置项 | 必填 | 默认值 | 说明 |
---|---|---|---|
twitter_website | 否 | 无 | 自定义website |
twitter_proxy | 否 | 无 | proxy |
twitter_qq | 否 | 2854196310 | 合并消息头像来源 |
command_priority | 否 | 10 | 命令优先级 |
twitter_htmlmode | 否 | false | 网页截图模式 |
twitter_original | 否 | false | 使用x官网截图 |
twitter_no_text | 否 | false | 开启媒体过滤后彻底不输出文字 |
twitter_node | 否 | true | 使用合并转发消息发送 |
配置格式示例
# twitter
twitter_proxy="http://127.0.0.1:1090"
twitter_qq=2854196306
command_priority=10
# 使用截图纯图模式示例
twitter_htmlmode=true
twitter_original=false
twitter_no_text=true
twitter_node=false
🎉 使用
指令表
指令 | 权限 | 需要@ | 范围 | 说明 |
---|---|---|---|---|
关注推主 | 无 | 否 | 群聊/私聊 | 关注,指令格式:“关注推主 <推主id> [r18] [媒体]” |
取关推主 | 无 | 否 | 群聊/私聊 | 取关切割 |
推主列表 | 无 | 否 | 群聊/私聊 | 展示列表 |
推文推送关闭 | 群管 | 否 | 群聊/私聊 | 关闭推送 |
推文推送开启 | 群管 | 否 | 群聊/私聊 | 开启推送 |
[] 为可选参数,
r18 : 开启r18推文推送
媒体 : 仅推送媒体消息
效果图
注意事项
2.消息为合并转发发送,存在延迟和发送失败的可能
3.新的0.1.0版本为破坏性更新:代理配置格式更改,关注列表需重新关注。
4.已知bug,视频无法发送(可能为gocq bug)
更新记录
2024.01.01 0.2.0
- 增加截图模式
- 增加无文字的媒体过滤
- 增加非合并转发发送方式
- 调整缓存删除方式为每天早上删除(没什么用,现在发不出视频)
- 调整媒体图片输出不再会输出评论区他人的图片视频
- 优化了日志输出
- 还有什么有点忘了,一口气改到0点,祝大家2024新年快乐吧
2023.10.28 0.1.14
- 更新可用站点列表
2023.09.16 0.1.13
- 暂无更新,可在env配置文件中添加以下参数来解决不可用问题
# twitter
twitter_website="https://nitter.privacydev.net"
最近找工作忙,更新慢了请见谅
2023.07.28 0.1.13
- 修复bug
2023.07.25
- 优化推送消息发送方式
- 修复bug
2023.07.20
- 增加了仅媒体推送
- 修复了该插件与若干问题
2023.06.27
- 临时解决回复原推文时,无法推送全部推文的问题
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for nonebot-plugin-twitter-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e89f717e0f757894c5535ac012154ffaac103d7288bac9785553b96de6c0f68d |
|
MD5 | a97d5ecb008246352c4e260efa95c5ab |
|
BLAKE2b-256 | c77e565cf5175cf7bcd390aab0d6503d1d238d0b6a992fc2f2405b5d2a714b8d |
Close
Hashes for nonebot_plugin_twitter-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5533224d36cf11f2dfeedef73805cf71ea40a71595646a09d2ff0231efea59ab |
|
MD5 | 8a19e9fba3524e265a42d8eecb53852f |
|
BLAKE2b-256 | 95c7e0ac7f56f00c0089441000d6b9101d4c37e3bf0199525fded9fa895bf442 |