nobebot2插件《猜猜看》
Project description
nonebot-plugin-guess
《猜猜看》nonebot2插件(Guess a name plugin for nonebot2)
安装
pip install nonebot-plugin-guess
# pip install nonebot-plugin-guess -U # 升级到最新版
or
poetry add nonebot-plugin-guess
# poetry add nonebot-plugin-guess@latest # 升级到最新版
or clone https://github.com/ffreemt/nonebot-plugin-guess-game and install from the repo.
使用
# bot.py
...
nonebot.load_plugin("nonebot_plugin_guess")
...
然后在机器人所在的群里或给机器人发私信 /guess
(或cai, 猜猜看, 猜)即可开始“猜猜看”游戏。
定制
插件自带的游戏数据仅限“猜城市名” 及固定的城市名:"上海", "北京", "广州", "深圳", "香港", "雅典", "西安", "长沙", "多伦多", "旧金山", "Zurich", "约翰内斯堡"; 最多猜的次数: 4
如需自己定制游戏,可在.env
里加入:
# .env
guess_name = "人名"
guess_max = 3
guess_data = ["贾宝玉", "林黛玉",]
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
Built Distribution
Close
Hashes for nonebot-plugin-guess-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46ab7c4f62c6d372fe84f015fafc8b0deda28a6aa645d5940ee9dd7169f10721 |
|
MD5 | 03ef16e826bddceb24b0a11a72f97f84 |
|
BLAKE2b-256 | 62cd0f669c35597109ae3c0e74a46e4be5862f9582239d87b13ae630581f3dd4 |
Close
Hashes for nonebot_plugin_guess-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49ea66bfe5126b911257eaeafeae68e6e649ce3c43facda65d3010fb2085d5e5 |
|
MD5 | 5dd4a2ff6f1fc5a5430ba462ae74396b |
|
BLAKE2b-256 | 9b0675fd228bc2ddfe14e0b79e3d79232c3108120f7893ea97db853e974d9b01 |