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 details)

Uploaded Source

Built Distribution

nonebot_plugin_gotify-1.0.9-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_gotify-1.0.9.tar.gz.

File metadata

  • Download URL: nonebot_plugin_gotify-1.0.9.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.19.3 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for nonebot_plugin_gotify-1.0.9.tar.gz
Algorithm Hash digest
SHA256 5432910569bd2f5703022e574ccfd1def4a4c389eb66ff3e8497b25b077c252e
MD5 a504a8081fc0c22d3923f5a766f9af55
BLAKE2b-256 0a676227d3e318a96c0173508c2445047fe790b480530499fa9cd18c729b0559

See more details on using hashes here.

File details

Details for the file nonebot_plugin_gotify-1.0.9-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_gotify-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 072c051b572249f28acf75d6a1779173e44d2cafa7574bec8a76771d2e3d914d
MD5 0b8e2a7b4db573d46c74cd990636aa21
BLAKE2b-256 bea84cff0dd1b0d647396cd88cf8dd3760c7c766f8c5a3cd3c89c4c98b2f7d3f

See more details on using hashes here.

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