Giter Site home page Giter Site logo

xi-yue-233 / nonebot-plugin-bfchat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 050644zf/nonebot-plugin-bfchat

0.0 0.0 1.0 1.26 MB

一个战地一/五聊天机器人,基于nonebot2框架

License: MIT License

JavaScript 0.28% Python 66.91% HTML 32.81%

nonebot-plugin-bfchat's Introduction

xdm, you V ma?

nonebot-plugin-bfchat

一个基于nonebot2平台的战地1/5/2042聊天机器人,提供战绩查询,群账号绑定,服务器查询等功能,提供基于htmlrender插件渲染的美观输出。

安装

nb-cli: (推荐)

nb plugin install nonebot-plugin-bfchat

pip: (需要在pyproject.toml手动导入)

pip install nonebot-plugin-bfchat

配置项及默认值

bfchat_prefix = "/"    # bfchat的命令前缀,默认为"/"
bfchat_dir = "./bfchat_data"    # bfchat的存储目录,用于存储群绑定玩家数据

命令列表

使用以下命令前均需要添加配置好的前缀

命令 作用 备注
bf help 返回本列表
bf init 初始化本群绑定功能,未初始化的群,群员不能使用绑定功能 仅SUPERUSER和群管理员有效
bf1 [玩家id]
bfv [玩家id]
查询 [玩家id]的bf1/bfv战绩信息 如果查询玩家是me,则会将数据保存至本地
且一小时内再次查询不会再发起请求
bf1 [玩家id] weapons
bfv [玩家id] weapons
查询 [玩家id]的bf1/bfv武器信息
bf1 [玩家id] vehicles
bfv [玩家id] vehicles
查询 [玩家id]的bf1/bfv载具信息
bf1 bind [玩家id]
bfv bind [玩家id]
将 对应游戏的 [玩家id]与命令发送人绑定,绑定后可使用 me 代替 [玩家id]
例如 bfv me
bf1与bfv绑定不互通
bf1 list
bfv list
列出该服务器所有已绑定的bf1/bfv玩家信息 使用本地数据,不会自动更新
bf1 server [服务器名]
bfv server [服务器名]
查询名字包含 [服务器名]的bf1/bfv服务器

示例

bfv me

bfv server BFV ROBOT

img

bfv list

img

nonebot-plugin-bfchat's People

Contributors

050644zf avatar xi-yue-233 avatar

Forkers

stickyboy213

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.