Giter Club home page Giter Club logo

nodejs-bot's Introduction

werewolf-bot

让你在群里玩狼人杀的 QQbot。

本 bot 为「现役&退役OIer 狼人杀群」(群号 690869318)编写,欢迎退役 / 非退役 OIer 加群。

Tutorials

该 bot 只会在配置文件限定的 QQ 群内生效。

注册

使用 register 注册。

注册成功后会被 bot 添加到当局游戏人员名单中。

如需取消报名可使用 unregister

只能在游戏未开始时注册。

开始游戏

使用 start game 开始游戏

开始游戏后会根据配置文件里的角色分配方案随机分配角色。

如果配置文件内没有对应人数的角色分配方案则无法开始游戏。

角色功能

在分配到角色后使用 help 命令即可查看角色功能,包括用法和注意事项等。

以下所有角色命令的 <player> 部分请自行使用 qq 或 nick 或座位号替换。

Usage

以下简短教程默认你有 NodeJS 基础且熟悉 Koishi 机器人部署。

  1. clone 本项目到本地
  2. 自行搭建 go-cqhttp 或类似服务
  3. 复制 config.example.ymlconfig.yml,自行填写内容
  4. 运行 npm start 启动程序

Dependencies

  • Koishi
  • Mirai
  • go-cqhttp

nodejs-bot's People

Contributors

memset0 avatar yhx-12243 avatar

Stargazers

houboxue avatar

Watchers

James Cloos 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.