NoneBot2 plugin for twitter
Project description
这是一个 nonebot2 插件项目的模板库, 你可以直接使用本模板创建你的 nonebot2 插件项目的仓库
模板库使用方法:
- 点击仓库中的 "Use this template" 按钮, 输入仓库名与描述, 点击 " Create repository from template" 创建仓库
- 在创建好的新仓库中, 在 "Add file" 菜单中选择 "Create new file", 在新文件名处输入
LICENSE
, 此时在右侧会出现一个 "Choose a license template" 按钮, 点击此按钮选择开源协议模板, 然后在最下方提交新文件到主分支 - 全局替换
nek0us
为仓库所有者ID; 全局替换nonebot-plugin-twitter
为插件名; 全局替换nonebot_plugin_twitter
为包名; 修改 python 徽标中的版本为你插件的运行所需版本 - 修改 README 中的插件名和插件描述, 并在下方填充相应的内容
配置发布工作流:
- 前往 https://pypi.org/manage/account/#api-tokens 并创建一个新的 API 令牌。创建成功后不要关闭页面,不然你将无法再次查看此令牌。
- 在单独的浏览器选项卡或窗口中,打开 Actions secrets and variables 页面。你也可以在 Settings - Secrets and variables - Actions 中找到此页面。
- 点击 New repository secret 按钮,创建一个名为
PYPI_API_TOKEN
的新令牌,并从第一步复制粘贴令牌。
触发发布工作流: 推送任意 tag 即可触发。
创建 tag:
git tag <tag_name>
推送本地所有 tag:
git push origin --tags
📖 介绍
这里是插件的详细介绍部分
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-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
文件中添加下表中的必填配置
配置项 | 必填 | 默认值 | 说明 |
---|---|---|---|
配置项1 | 是 | 无 | 配置说明 |
配置项2 | 否 | 无 | 配置说明 |
🎉 使用
指令表
指令 | 权限 | 需要@ | 范围 | 说明 |
---|---|---|---|---|
指令1 | 主人 | 否 | 私聊 | 指令说明 |
指令2 | 群员 | 是 | 群聊 | 指令说明 |
效果图
如果有效果图的话
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.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fea9faf38dc83c74cc05adfd050635867bda5b28bf7dd03464df18532a77253 |
|
MD5 | 66fc9c492d00d4905fea3416f0f71746 |
|
BLAKE2b-256 | a6e6524ffa7be45193692d39f993cdd2b051a175201b10c4caaba0b85d2b24e9 |
Close
Hashes for nonebot_plugin_twitter-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2f3d4905b9d8c3dda5c02ce6b2cf46c9678d806c50516cf76ae30889a92126b |
|
MD5 | 80853cddf2a65221850270da6739ffa2 |
|
BLAKE2b-256 | 0b25a9c8b33793aa8064b4bc42bd7b8a1663f2611c859d128dbed4a84eef05dc |