羡慕 koishi
Project description
📖 介绍
羡慕 koishi (`3´)
- 群聊概率(默认0.7)复读羡慕
- 触发羡慕会收纳关键词,可配置关键词的最大字数(默认10),超过该值时,取其中的英文数字组合(超过最大字数忽略)
- 为了防止刷屏,不会连续羡慕同一关键词
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-envious --upgrade
使用 pypi 源安装/更新
nb plugin install nonebot-plugin-envious --upgrade -i https://pypi.org/simple
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-envious
pdm
pdm add nonebot-plugin-envious
poetry
poetry add nonebot-plugin-envious
conda
conda install 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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_envious-0.0.6.tar.gz.
File metadata
- Download URL: nonebot_plugin_envious-0.0.6.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d9ab5496d5378ce740e59dfe3547cc550de0a0e2a95f2a77a99da4a85e00988
|
|
| MD5 |
5e7bf0bf9cea75b01baf3448ed6e9ac7
|
|
| BLAKE2b-256 |
5342e3dbac82cf334a8e5a76dd906de71a80e0221fd72aa8dd6e4d8f86a30f7b
|
File details
Details for the file nonebot_plugin_envious-0.0.6-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_envious-0.0.6-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30bdf8933074d7f6166871f842316040b962abe455de199b0f79a79ec7e1f627
|
|
| MD5 |
1c8168523f3554b88d78feb070327ed3
|
|
| BLAKE2b-256 |
9f03b734cd801d82f7d1cbb134ca945af528e94b28b941a200e35023a78d3c14
|