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__font_path ./resources/FiraCode-Medium.ttf 字体文件路径
wordle__dictionary_answer_path ./resources/DictionaryAnswer.txt 答案词库路径
wordle__dictionary_guess_path ./resources/DictionaryGuess.txt 猜词词库路径

注意:

  • 路径配置可使用相对路径 (相对于插件安装目录) 或绝对路径
  • 默认词库包括 8000 常见答案词和 161700 常见可猜词

🎉 使用

指令表

指令 权限 需要@ 范围 说明
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.10.tar.gz (586.6 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_wordle_simple-0.0.10-py3-none-any.whl (585.0 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_wordle_simple-0.0.10.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_wordle_simple-0.0.10.tar.gz
Algorithm Hash digest
SHA256 adb9cc73e9bb19ad2ef09fb5e69b0b161aab9bde10b7cad332ddf99ecbffd394
MD5 9b8d0c3fefab96b01f94d59dc49242be
BLAKE2b-256 0ffaa4d605c284d104ee2335af79e1934ded013be97709a05b44f5985e4f66e7

See more details on using hashes here.

File details

Details for the file nonebot_plugin_wordle_simple-0.0.10-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_wordle_simple-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 14ca670d27861993d2a449f59b4a3915e2399907540085afee75eb88f0671102
MD5 feb2e8c54d6c11450a6a6179a300d3f4
BLAKE2b-256 9760137409792961c182b213da8f1c104b62e38a08451fa77149df06821f1156

See more details on using hashes here.

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