wmc的戳一戳回复插件,消息内容、概率都可以定制喔~
Project description
pokepoke_miss
介绍
wmc的戳一戳回复插件,消息内容、概率都可以定制喔~
功能
-
对机器人执行戳一戳操作时,根据概率选择一个消息进行回复
-
预设:
MISS
- 概率 10%GOOD
- 概率 10%GREAT
- 概率 30%PERFECT
- 概率 40%CRITICAL PERFECT
- 概率 10%
安装
使用 NB-CLI 安装
在 Nonebot 根目录执行
nb plugin install pokepoke_miss
手动安装
-
将
pokepoke_miss.py
文件放入你的 Nonebot 插件目录中 -
在
bot.py
中写入以下代码:nonebot.load_plugin("FOLDER-TO-PLUGIN.pokepoke_miss")
自定义
根据需求修改 message_list
中的消息内容和对应的概率,例如:
message_list = [
("喵", 0.2),
("喵喵", 0.3),
("喵喵喵", 0.5)
]
许可
MIT License
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
pokepoke_miss-0.1.20.tar.gz
(3.5 kB
view details)
Built Distribution
File details
Details for the file pokepoke_miss-0.1.20.tar.gz
.
File metadata
- Download URL: pokepoke_miss-0.1.20.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.9.19 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4aa040d54d41183304aef760527f3a01bdbaf240be8f423facb0247a3609f396 |
|
MD5 | 368e0b1cbb9dd67d7161edfcfc9c93a0 |
|
BLAKE2b-256 | d2eeacdc467e44f520146630c3e19875aa85434dbea8048b8ebd67e37d49777a |
File details
Details for the file pokepoke_miss-0.1.20-py3-none-any.whl
.
File metadata
- Download URL: pokepoke_miss-0.1.20-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.9.19 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57bf91151513659ac1de3c57049f7df7528beb1ac76d83b37072bd0a2f7d5baa |
|
MD5 | 209a15e8d739bc5b8b574a8f467808eb |
|
BLAKE2b-256 | db3d8e890c5b8c56ee85a54ace211516de0f258bcc4799c46c058012c865d2d8 |