Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jie65535/jdice
一个Mirai-Console插件,用dnd语法郑骰子,如`3d6` `d20` `D100`
https://github.com/jie65535/jdice
Last synced: about 2 months ago
JSON representation
一个Mirai-Console插件,用dnd语法郑骰子,如`3d6` `d20` `D100`
- Host: GitHub
- URL: https://github.com/jie65535/jdice
- Owner: jie65535
- License: agpl-3.0
- Created: 2023-01-31T14:13:46.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-25T15:56:50.000Z (9 months ago)
- Last Synced: 2024-03-25T18:06:23.874Z (9 months ago)
- Language: Kotlin
- Size: 78.1 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# J Dice
基于Mirai Console的骰子插件用法十分简单, `3d6` 表示投出 `3` 颗 `6` 面骰子,下限是 `3`,上限是 `3*6` 即(3~18)。
`d20` 表示投出`1`颗`20`面骰子,可以在一条消息中投多次,例如 `d20, d20 d20`。(即正则可匹配多个结果)
匹配的正则表达式如下 `\b(\d{0,3})[dD](\d{1,3})\b`