Skip to main content

Internet Genius - Akinator

Project description

NoneBotPluginLogo

NoneBotPluginText

NoneBot-Plugin-Akinator

✨ 网络天才 ✨

python pdm-managed wakatime
Pydantic Version 1 Or 2 license pypi pypi download

📖 介绍

把网络天才 Akinator 搬进你的 Bot !

💿 安装

以下提到的方法 任选其一 即可

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

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

[tool.nonebot]
plugins = [
    # ...
    "nonebot_plugin_akinator"
]

⚙️ 配置

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

配置项 必填 默认值 说明
PROXY 访问 Akinator 使用的代理
AKINATOR_CHILD_MODE False 是否启用 Akinator 的儿童模式(结果不会出现 NSFW 人物)
AKINATOR_LANGUAGE cn Akinator 的语言

🎉 使用

发送指令 akinator / aki 即可开始游戏

开始游戏后,直接发送你的答案即可(序号和文字均可)

效果图

点击展开

Alt text
Alt text

📞 联系

QQ:3076823485
Telegram:@lgc2333
吹水群:1105946125
邮箱:lgc2333@126.com

💡 鸣谢

Infiniticity/akinator.py

  • Akinator API 的封装

MeetWq/pil-utils

  • Pillow 工具库

💰 赞助

赞助我

感谢大家的赞助!你们的赞助将是我继续创作的动力!

📝 更新日志

0.2.0

  • 适配 Pydantic V1 & V2
  • 换用 alconna

0.1.3

  • 支持更多平台
  • 删除猜出角色后继续猜的功能,因为有 Bug

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_akinator-1.0.0.tar.gz (931.2 kB view details)

Uploaded Source

Built Distribution

nonebot_plugin_akinator-1.0.0-py3-none-any.whl (932.3 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_akinator-1.0.0.tar.gz.

File metadata

  • Download URL: nonebot_plugin_akinator-1.0.0.tar.gz
  • Upload date:
  • Size: 931.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.17.3 CPython/3.10.12 Linux/6.5.0-1024-azure

File hashes

Hashes for nonebot_plugin_akinator-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6e12b7ed54108e24376da23103cc813cefb7f4097bf6b23dcd15023efc398481
MD5 3343e1ff31b4147ed44257a7329788ab
BLAKE2b-256 26e87328c717316e5619ddb9ce3aee10b4846acdeedff12640902454e6957c3c

See more details on using hashes here.

File details

Details for the file nonebot_plugin_akinator-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_akinator-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3addf4064e9f7f971085cdd333c31d792f9c1bc93beb2a1be54883676884a483
MD5 1b0b8e3cb8e5e9720cfedbcef91db507
BLAKE2b-256 a5b06c3b02755e70585ce97a3c9b2758dc7483fed9ae6ce3dbd54364bbd221e8

See more details on using hashes here.

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