Skip to main content

堡垒之夜插件

Project description

NoneBotPluginLogo

nonebot-plugin-PPPPP

✨ NoneBot 插件简单描述 ✨

license pypi python

这是一个 nonebot2 插件项目的模板库, 你可以直接使用本模板创建你的 nonebot2 插件项目的仓库

模板库使用方法
  1. 点击 start-course 创建仓库
  2. 在创建好的新仓库中, 在 "Add file" 菜单中选择 "Create new file", 在新文件名处输入LICENSE, 此时在右侧会出现一个 "Choose a license template" 按钮, 点击此按钮选择开源协议模板, 然后在最下方提交新文件到主分支
  3. 全局替换owner为仓库所有者ID; 全局替换PPPPP为插件名; 全局替换ppppp为包名; 修改 python 徽标中的版本为你插件的运行所需版本
  4. 修改 README 中的插件名和插件描述, 并在下方填充相应的内容

[!NOTE] 模板库中自带了一个发布工作流, 你可以使用此工作流自动发布你的插件到 pypi

配置发布工作流
  1. 前往 https://pypi.org/manage/account/#api-tokens 并创建一个新的 API 令牌。创建成功后不要关闭页面,不然你将无法再次查看此令牌。
  2. 在单独的浏览器选项卡或窗口中,打开 Actions secrets and variables 页面。你也可以在 Settings - Secrets and variables - Actions 中找到此页面。
  3. 点击 New repository secret 按钮,创建一个名为 PYPI_API_TOKEN 的新令牌,并从第一步复制粘贴令牌。

[!IMPORTANT] 这个发布工作流需要 pyproject.toml 文件, 并且只支持 PEP 621 标准的 pyproject.toml 文件

触发发布工作流 从本地推送任意 tag 即可触发。

创建 tag:

git tag <tag_name>

推送本地所有 tag:

git push origin --tags

📖 介绍

这里是插件的详细介绍部分

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-PPPPP
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-PPPPP
pdm
pdm add nonebot-plugin-PPPPP
poetry
poetry add nonebot-plugin-PPPPP
conda
conda install nonebot-plugin-PPPPP

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

plugins = ["nonebot_plugin_ppppp"]

⚙️ 配置

在 nonebot2 项目的.env文件中添加下表中的必填配置

配置项 必填 默认值 说明
配置项1 配置说明
配置项2 配置说明

🎉 使用

指令表

指令 权限 需要@ 范围 说明
指令1 主人 私聊 指令说明
指令2 群员 群聊 指令说明

效果图

如果有效果图的话

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_fortnite-0.0.3.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_fortnite-0.0.3-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_fortnite-0.0.3.tar.gz.

File metadata

  • Download URL: nonebot_plugin_fortnite-0.0.3.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for nonebot_plugin_fortnite-0.0.3.tar.gz
Algorithm Hash digest
SHA256 8625c90e80af2c62bddb525e973d99d66a10c2d08836831050a04e57b447d528
MD5 6766b1902f5c278e0aa6f89b54e389b3
BLAKE2b-256 f29cb7e0c53baeaf5c8707de9931cdf2e4a21b8120fb56b2267dd9cb407086e5

See more details on using hashes here.

File details

Details for the file nonebot_plugin_fortnite-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_fortnite-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 11a6e6e367f5d1883bd24bd39ea7c6e45a020a0ee3e604d7c4baeca4a423b0f4
MD5 6a0bf05c37b766967c6b03b2cbb05278
BLAKE2b-256 7b35504ef8dfc9fce765840ce0b79439a1f026550d255ccfa363363208f5b1ce

See more details on using hashes here.

Supported by

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