Skip to main content

No project description provided

Project description

日麻寄分器

支持适配器:OneBot V11

支持驱动器:FastAPI

配置

mahjong_scoreboard_database_conn_url

数据库连接URL,必须为postgresql+asyncpg

举例:postgresql+asyncpg://username:password@host:5432/database

mahjong_scoreboard_callback_host

回调HOST,若为非容器环境部署(go-cqhttp与nonebot均运行在同一环境)则无需设置。若为Docker环境部署则设置为Docker容器名。用于上传文件时让go-cqhttp下载本机文件。

mahjong_scoreboard_callback_port

回调端口,与PORT保持一致即可。

指令

对局

  • /新建对局 [四人南|四人东]
  • /结算对局 <成绩> [对局<编号>] [@<用户>] [<自风>]
  • /撤销结算对局 [对局<编号>] [@<用户>]
  • /设置对局PT [对局<编号>] [@<用户>]
  • /删除对局 [对局<编号>]
  • /设置对局进度 <进度> [对局<编号>]

对局查询

  • /查询对局 [<编号>]
  • /个人最近对局 [@<用户>]
  • /群最近对局
  • /个人未完成对局 [@<用户>]
  • /群未完成对局
  • /导出赛季对局 [<代号>]
  • /导出所有对局

赛季

  • /查询赛季 [<代号>]
  • /查询所有赛季
  • /新建赛季
  • /开启赛季 [<代号>]
  • /结束赛季
  • /删除赛季 [<代号>]

赛季PT

  • /设置赛季PT [@<用户>]
  • /查询PT [@<用户>]
  • /查询榜单
  • /导出榜单

以上命令格式中,以<>包裹的表示一个参数,以[]包裹的表示一个可选项。参数可通过任意顺序提供。

LICENSE

MIT License

Copyright (c) 2022 ssttkkl

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


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

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file nonebot_plugin_mahjong_scoreboard-0.1.0.post3.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_mahjong_scoreboard-0.1.0.post3.tar.gz
Algorithm Hash digest
SHA256 fac341471204fc2b7aba192277fd38d5c74ef61832da1c876b2ff33c3ddd40e2
MD5 3a2b3ca4b8c073b30f6eb006236bffa4
BLAKE2b-256 3fbdb9a12df80739cc3259c16a2a3b9e51f387c3155909ea8650bff3a2e414e1

See more details on using hashes here.

File details

Details for the file nonebot_plugin_mahjong_scoreboard-0.1.0.post3-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_mahjong_scoreboard-0.1.0.post3-py3-none-any.whl
Algorithm Hash digest
SHA256 bdb46e2da33c6dec78af9bf6f965eaa5335cda75acc504660d6acfeab83b599f
MD5 d3b07323b1884216451f03b0826d226d
BLAKE2b-256 ce2090fe59a227685f18e1d12da57f9a8f03b499e33af1dddbda2ff07a556812

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page