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
twitter_proxy="http://127.0.0.1:1090"
twitter_qq=2854196306
command_priority=10
🎉 使用
指令表
指令 | 权限 | 需要@ | 范围 | 说明 |
---|---|---|---|---|
关注推主 | 无 | 否 | 群聊/私聊 | 关注,指令格式:“关注推主 <推主id> [r18] [媒体]” |
取关推主 | 无 | 否 | 群聊/私聊 | 取关切割 |
推主列表 | 无 | 否 | 群聊/私聊 | 展示列表 |
推文推送关闭 | 群管 | 否 | 群聊/私聊 | 关闭推送 |
推文推送开启 | 群管 | 否 | 群聊/私聊 | 开启推送 |
[] 为可选参数,
r18 : 开启r18推文推送
媒体 : 仅推送媒体消息
效果图
注意事项
2.消息为合并转发发送,存在延迟和发送失败的可能
3.新的0.1.0版本为破坏性更新:代理配置格式更改,关注列表需重新关注。
更新记录
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.1.13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f18e0a2af3394daac15d7a5ef768bec9dac30fd81f0f3354703bb1cefbf79f26 |
|
MD5 | 4e6216fd5fe82baf830239ff6b907b15 |
|
BLAKE2b-256 | 81490bedd870e21c8745eec75a51de6fc6e16890d2eb228734e3c5e8ae0487c7 |
Close
Hashes for nonebot_plugin_twitter-0.1.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65ac537b777f10f3f94b2732e66ba66c82770360d77ec99f4c285a675fb8a4ce |
|
MD5 | 203a41b07c420eb092eb62298a71b71f |
|
BLAKE2b-256 | e82feb8b8b9b6128b0770061bbe810a6f7e12092ac8161e1dc4c27bd08278dc9 |