Skip to main content

A COC dice plugin for Nonebot2

Project description

NoneBot Plugin COC-Dicer

COC骰子娘插件 For Nonebot2

license pypi python

使用方法

nb plugin install nonebot-plugin-cocdicer // or
pip install --upgrade nonebot-plugin-cocdicer

在 Nonebot2 入口文件(例如 bot.py )增加:

nonebot.load_plugin("nonebot-plugin-cocdicer")

启动机器人后,输入 .help 获取帮助信息。

骰娘技能

  • Done or Will be done soon

    • .r 投掷指令
    • .sc san check
    • .st 射击命中判定
    • .ti 临时疯狂症状
    • .li 总结疯狂症状
    • .coc coc角色作成
    • .help 帮助信息
    • .en 技能成长
  • To Do

    • .set 设定
    • .rule 规则速查

指令详解

.r[dah#bp] a_number [+/-]ex_number
  • d:骰子设定指令,标准格式为xdy,x为骰子数量y为骰子面数,x为1时可以省略,y为100时可以省略;
  • a:检定指令,根据后续 a_number 设定数值检定,注意 a 必须位于 a_number 之前,且 a_number 前需使用空格隔开;
  • h:暗骰指令,骰子结构将会私聊发送给该指令者;(没测试过非好友,可以的话先加好友吧)
  • #:多轮投掷指令, # 后接数字即可设定多轮投掷,注意 # 后数字无需空格隔开;
  • b:奖励骰指令,仅对 D100 有效,每个 b 表示一个奖励骰;
  • p:惩罚骰指令,同奖励骰;
  • +/-:附加计算指令,目前仅支持数字,同样无需空格隔开。

以上指令理论上均可随意变更顺序并嵌套使用,如果不能,就是出bug了_(:3」∠)_

.coc age
  • age:调查员年龄

交互式调查员创建功能计划中

特别鸣谢

nonebot/nonebot2:简单好用,扩展性极强的 Bot 框架

Mrs4s/go-cqhttp:更新迭代快如疯狗的 OneBot Golang 原生实现

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

nonebot_plugin_cocdicer-0.1.1.tar.gz (27.7 kB view details)

Uploaded Source

Built Distribution

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

nonebot_plugin_cocdicer-0.1.1-py3-none-any.whl (27.0 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_cocdicer-0.1.1.tar.gz.

File metadata

  • Download URL: nonebot_plugin_cocdicer-0.1.1.tar.gz
  • Upload date:
  • Size: 27.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.8.5 Linux/4.14.24-qnap

File hashes

Hashes for nonebot_plugin_cocdicer-0.1.1.tar.gz
Algorithm Hash digest
SHA256 be87add92c673b457023b9b7b50123e976287a62cf081c29aa6457e800ba5efd
MD5 70f997effc17c0b0ccd42940c65b23d4
BLAKE2b-256 5e05f8804435f293bc17951e1ce6b1c31e81472a737249fd614322e7e3491f2c

See more details on using hashes here.

File details

Details for the file nonebot_plugin_cocdicer-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_cocdicer-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 23561f2581ec36425ebc26714d3b907d69af27ba16ec2a14d5cc09e378187b51
MD5 581704262a7bee6dfb55a7a374c26e04
BLAKE2b-256 dc9e402f193a71c2b970c3693a8ef714fae9a7899ca8924f767030699e9f8c82

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