Skip to main content

NoneBot2 plugin for twitter

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-twitter

✨ 推文订阅推送插件 ✨

license pypi python

📖 介绍

订阅推送 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推文
取关推主 群聊/私聊 取关切割
推主列表 群聊/私聊 展示列表
推文推送关闭 群管 群聊/私聊 关闭推送
推文推送开启 群管 群聊/私聊 开启推送

效果图

pCPuhWV.png pCPu4zT.png

注意事项

1.推主id: pCPMu36.png

2.消息为合并转发发送,存在延迟和发送失败的可能

3.新的0.1.0版本为破坏性更新:代理配置格式更改,关注列表需重新关注。

更新记录

2023.06.27

  1. 临时解决回复原推文时,无法推送全部推文的问题

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot-plugin-twitter-0.1.8.tar.gz (8.7 kB view hashes)

Uploaded Source

Built Distribution

nonebot_plugin_twitter-0.1.8-py3-none-any.whl (9.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page