Skip to main content

Default template for PDM package

Project description

NoneBotPluginLogo

nonebot-plugin-gotify

✨ 将NoneBot的通知和讯息推送到Gotify

✨ Push NoneBot's notifications and messages to Gotify

license pypi python

📖 介绍 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


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_gotify-1.0.9.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

nonebot_plugin_gotify-1.0.9-py3-none-any.whl (6.1 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