Skip to main content

一个简单的没有次数限制的猜词游戏 (Wordle) 插件

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-wordle-simple

✨ 简单英语猜词 ✨

license pypi python

📖 介绍

这是一个简单的 nonebot2 的猜词游戏 (Wordle) 插件,没有次数限制,可以自定义词库,支持群聊白名单和用户黑名单。

💿 安装

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

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

plugins = ["nonebot_plugin_wordle_simple"]

⚙️ 配置

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

配置项 必填 默认值 说明
wordle__command_priority 10 命令响应优先级
wordle__groups_enabled - 白名单群聊, 格式为字符串列表
wordle__ban_user [] 黑名单用户, 格式为字符串列表
wordle__length_min 4 最小单词长度
wordle__length_max 12 最大单词长度
wordle__debug_enabled False 是否启用调试指令

🎉 使用

指令表

指令 权限 需要@ 范围 说明
wordle.debug_enable 主人 全部 启用调试
wordle.debug_disable 主人 全部 禁用调试
wordle.change_min_length 主人 全部 更改最小单词长度
wordle.change_max_length 主人 全部 更改最大单词长度
wordle.enable 群管 群聊 将本群加入白名单
wordle.disable 群管 群聊 将本群移出白名单
wordle.help 群员 白名单群 帮助
wordle.help <指令> 群员 白名单群 特定指令的帮助
wordle.rule 群员 白名单群 游戏规则 (弃用)
wordle.start <单词长度> 群员 白名单群 启动一局游戏
wordle.guess <单词> 群员 白名单群 猜测某词
wordle.giveup 群员 白名单群 放弃一局游戏
wordle.remain 群员 白名单群 给出未使用的字母
wordle.history 群员 白名单群 显示猜测历史
wordle.debug 群员 白名单群 给出答案或词典 (调试用)

效果图

暂无

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_wordle_simple-0.0.6.tar.gz (586.7 kB view hashes)

Uploaded Source

Built Distribution

nonebot_plugin_wordle_simple-0.0.6-py3-none-any.whl (584.5 kB view hashes)

Uploaded Python 3

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