Giter Site home page Giter Site logo

nonebot-plugin-guess-game's Introduction

nonebot-plugin-guess

nonebot2betaonebotpythonCode style: blackLicense: MITPyPI version

《猜猜看》nonebot2插件(Guess a name plugin for nonebot2)

Field-tested with nonebot 2.0.0b2

安装

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 = ["贾宝玉", "林黛玉",]

nonebot-plugin-guess-game's People

Contributors

ffreemt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.