nobebot2插件《猜猜看》
Project description
nonebot-plugin-guess
《猜猜看》nonebot2插件(Guess a name plugin for nonebot2)
Field-tested with nonebot 2.0.0a13.post1
安装
pip install nonebot-plugin-guess
# pip install nonebot-plugin-guess -U # 升级到最新版
or
poetry add nonebot-plugin-guess
# poetry add nonebot-plugin-guess@latest # 升级到最新版
or
poetry add git+https://github.com/ffreemt/nonebot-plugin-guess-game.git
or
pip install git+https://github.com/ffreemt/nonebot-plugin-guess-game.git
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_name_list = ["贾宝玉", "林黛玉",]
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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2f4016bac050193afe63f1f3ca03bacf3972658da903a0cd52373fc58d3ab7b |
|
MD5 | 7a87220ad240af0def6b42a49d2123e9 |
|
BLAKE2b-256 | fbfce165eb931ec3c215c073a3f7c5f690be4868020ca4c9041312874a55338b |
Close
Hashes for nonebot_plugin_guess-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45b6e740541a17c8bfe8eb61bc541fc18c5b401502908ee75b82c9c3645a32c6 |
|
MD5 | a59e062a4a0d03bceec6eabfb1401c06 |
|
BLAKE2b-256 | 3ed1c6c836a327ba28db94ef380a63fa55c691d3deb1eb587c1c95f5020a2629 |