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.post4.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_mahjong_scoreboard-0.1.0.post4.tar.gz
Algorithm Hash digest
SHA256 e5b58cc7e5761cdcfb5abb667dbd7159730f464fb005f4c2eeb309ea80bfaa05
MD5 a81272b4c385fdb987a89cb304b9e362
BLAKE2b-256 1d745427edef15dc644a91d2c4b69593316051cff1cc024ed7db209ea8cda424

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_mahjong_scoreboard-0.1.0.post4-py3-none-any.whl
Algorithm Hash digest
SHA256 2c7607f66e9adb040fd28bfb26dbd4f03139c335a106b85f2801b6fc53ba9251
MD5 01d8e19e74366bc470af82543f037a94
BLAKE2b-256 a41b66b2bd16f8bc89c80a263f7f3a570888a9bbe25de73674c58fe0d928e080

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