Skip to content

Proito666/nonebot-plugin-mhguesser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nonebot-plugin-mhguesser

✨ <怪物猎人猜BOSS> ✨

license PyPI - Version python

怪物猎人:猜猜BOSS 的nonebot插件简单实现

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-mhguesser
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-mhguesser
pdm
pdm add nonebot-plugin-mhguesser
poetry
poetry add nonebot-plugin-mhguesser
conda
conda install nonebot-plugin-mhguesser

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

plugins = ["nonebot_plugin_mhguesser"]

⚙️ 配置

在 nonebot2 项目的 env 文件中添加配置

配置项 必填 类型 默认值 说明
mhguesser_max_attempts int 10 最大尝试次数

🎉 使用

mhstart: 开始游戏

直接输入怪物名称进行猜测,若玩家猜测的怪物某项数据与答案怪物相同,对应的信息框将变为绿色。

结束:结束游戏

About

怪物猎人猜BOSS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors