Skip to main content

羡慕 koishi

Project description

logo

✨ nonebot-plugin-enviou ✨

license pypi python ruff uv

📖 介绍

羡慕 koishi (`3´)

  1. 群聊概率(默认0.7)复读羡慕
  2. 触发羡慕会收纳关键词,可配置关键词的最大字数(默认10),超过该值时,取其中的英文数字组合(超过最大字数忽略)
  3. 为了防止刷屏,不会连续羡慕同一关键词

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-envious --upgrade

使用 pypi 源安装/更新

nb plugin install nonebot-plugin-envious --upgrade -i https://pypi.org/simple
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
conda
uv add nonebot-plugin-envious
pip
pip install nonebot-plugin-envious
pdm
pdm add nonebot-plugin-envious
poetry
poetry add nonebot-plugin-envious

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

plugins = ["nonebot_plugin_envious"]

⚙️ 配置

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

配置项 必填 默认值 说明
envious_max_len 10 收纳羡慕关键词的最大字符串长度
envious_probability 0.7 羡慕概率,只可填 0 ~ 1.0 之间的值
envious_list ["koishi"] 默认羡慕列表

🎉 使用

指令表

指令 权限 需要@ 范围 说明
羡慕 群员 群聊 顾名思义
当前羡慕 群员 群聊 顾名思义
清空羡慕 群员 群聊 顾名思义

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_envious-0.1.5.tar.gz (5.9 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_envious-0.1.5-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_envious-0.1.5.tar.gz.

File metadata

  • Download URL: nonebot_plugin_envious-0.1.5.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for nonebot_plugin_envious-0.1.5.tar.gz
Algorithm Hash digest
SHA256 8f553f1eaf75f73b6d6f5df71aea0c5e85b937279b4bf4a435cc8240f6303793
MD5 1c0bfaecd06f1f67f6b3b81ac1be2aef
BLAKE2b-256 5a345d3cc5df257b544224b93ef9258f4ce5d2959f17f33f2ae229c9c07ab2c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for nonebot_plugin_envious-0.1.5.tar.gz:

Publisher: release.yml on fllesser/nonebot-plugin-envious

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nonebot_plugin_envious-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_envious-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 be0da13fe8c833128cd5c3d4793ac95ee0144a850415a0a3c62e7f23ebed367b
MD5 486c24858df708fc51b2ec2def5476a3
BLAKE2b-256 c2651a66d960137fbdc7946ca282635f43c6958cc1bcb1ee265f88d6e3ad6e4c

See more details on using hashes here.

Provenance

The following attestation bundles were made for nonebot_plugin_envious-0.1.5-py3-none-any.whl:

Publisher: release.yml on fllesser/nonebot-plugin-envious

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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