Default template for PDM package
Project description
nonebot-plugin-gotify
✨ 将NoneBot的通知和讯息推送到Gotify ✨
✨ Push NoneBot's notifications and messages to Gotify ✨
📖 介绍 Introduction
将Bot生命周期,聊天讯息实时推送到Gotify,实现个人通知管理器
Push Bot lifecycle and chat messages to Gotify in real time, and achieve personal notification manager
💿 安装 Installation
使用 nb-cli 安装(推荐,需先安装`nb-cli`) Use nb-cli
nb plugin install nonebot-plugin-gotify
使用 pip 安装 Use pip
pip install nonebot-plugin-gotify
使用包管理器安装 Use other package manager
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-gotify
pdm
pdm add nonebot-plugin-gotify
poetry
poetry add nonebot-plugin-gotify
conda
conda install nonebot-plugin-gotify
轻雪机器人已内置该插件,无需单独安装
LiteyukiBot has built-in this plugin, no need to install separately
🎉 使用 Usage
本插件暂时没有和用户交互的部分
This plugin does not have an interactive part with the user for the time being
⚙️ 配置 Configuration
# 必要字段 Required
GOTIFY_URL = "http://your-gotify-server:port"
GOTIFY_TOKEN = "your-gotify-token"
# 可选字段 Optional with default value
GOTIFY_PRIORITY = 5
GOTIFY_NICKNAME = "NoneBot" # 推送系统消息的昵称 Nickname for system messages
GOTIFY_TITLE = "{message_type}: {nickname}({user_id})" # 推送系统消息的标题模板 Title for system messages template
GOTIFY_MESSAGE = "{message}" # 推送系统消息的内容模板 Content for system messages template
GOTIFY_INCLUDES = ["message", "notice"] # 包含的消息类型 Includes message types
目前支持的占位符 Currently supported placeholders:
{message_type}
: 消息类型 Message type{nickname}
: 昵称 Nickname{user_id}
: 用户ID User ID{message}
: 消息内容 Message content
ℹ️ 其他 Other
-
目前该插件已内置在轻雪机器人应用中,无需单独安装. The plugin has been built into the LiteyukiBot application, no need to install separately
-
该插件仍然有许多内容需要完善,欢迎各位的建议及贡献. There are still many things to be improved in this plugin, welcome your suggestions and contributions
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
Hashes for nonebot_plugin_gotify-1.0.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5432910569bd2f5703022e574ccfd1def4a4c389eb66ff3e8497b25b077c252e |
|
MD5 | a504a8081fc0c22d3923f5a766f9af55 |
|
BLAKE2b-256 | 0a676227d3e318a96c0173508c2445047fe790b480530499fa9cd18c729b0559 |
Hashes for nonebot_plugin_gotify-1.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 072c051b572249f28acf75d6a1779173e44d2cafa7574bec8a76771d2e3d914d |
|
MD5 | 0b8e2a7b4db573d46c74cd990636aa21 |
|
BLAKE2b-256 | bea84cff0dd1b0d647396cd88cf8dd3760c7c766f8c5a3cd3c89c4c98b2f7d3f |