Skip to main content

A COC dice plugin for nonebot2

Project description

NoneBot Plugin Orangedice

一个普通的COC骰子插件
真的不点个Star吗?
Download

如何下载

pip install nonebot_plugin_orangedice 
nb plugin install nonebot_plugin_orangedice

注:0.2.2的版本的储存方式为文件储存
请因为SQLModel依赖导致冲突的用户下载此版本

nb plugin install nonebot_plugin_orangedice==0.2.2

可选配置

#version==0.2.0
CARD_FILE=card.json #人物卡文件位置
LOG_FILE=log.json #日志文件位置
CACHE_FILE=cache.json #缓存文件位置
#version>=0.3.0
CACHE_FILE=cache.txt # 缓存文件位置
SQLITE_FILE=DICE.db #数据库位置

指令集

普通的骰点,格式为onedice标准内COC骰子格式

RD 普通骰子

.r[expr]

.r1d100
.r5d100a10

RA 属性掷点

骰出一个 1D100 的骰子进行属性/技能检定
不提供 value 则在人物卡中获取属性

.ra[attritube]([value])

.raStar50
.ra属性60

ST 录人物卡

录入人物属性卡,仅当使用 clear 时重置人物卡

.st([attritube][value])/(clear)

.st测试10普通属性100san50..
.st clear

SC 理智检定

进行 SanCheck 检定,自动扣除人物卡内的 san。
支持 dice expr 但不支持除法运算符。

.sc [success]/[failure] ([san])

.sc 1d8/1d3

LOG 日志记录

记录跑团/群聊日志,此功能需群管理/群主才可开启

.log (on)/(off)/(upload)/(clear)

.log on     #开启日志记录功能
.log off    #暂停当前日志记录
.log upload #将日志记录上传至群文件
.log clear  #清空之前的日志

参考项目(让我学习许多Owo)

OneDice: Today, we stand as one.
nonebot_plugin_cocdicer: A COC dice plugin for Nonebot2

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-orangedice-0.3.3.tar.gz (17.3 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_orangedice-0.3.3-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file nonebot-plugin-orangedice-0.3.3.tar.gz.

File metadata

File hashes

Hashes for nonebot-plugin-orangedice-0.3.3.tar.gz
Algorithm Hash digest
SHA256 64f8ea06070582844f4e16311d10d5b9b9138c643db741c65258de47d3871f6a
MD5 5b71cb1021c2a6a549f809a116c3772f
BLAKE2b-256 0517b037427590a0128343682a655f5de44c6d2714da3a055d2ac43b0c50d938

See more details on using hashes here.

File details

Details for the file nonebot_plugin_orangedice-0.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_orangedice-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a93fca16f10cf7802968c281bb5f9ba945a89e555ff85f2dbac04cf6b57a8828
MD5 babc3ff4020997565b5f0340b6df261c
BLAKE2b-256 b71d43a8f4bbd67ce3e4710b03e3db3ce5ffe3979f3337c0e1b3ccecfd42df33

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