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 #数据库位置

指令集

  • .r
  • .rh
  • .ra
  • .st
  • .li/ti
  • .sc
  • .log
  • .nn
  • .list
  • .coc
  • ...

RD 普通骰子

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

.r[expr]

.r1d100
.r5d100a10

RA 属性掷点

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

.ra[attritube]([value])

.raStar50
.ra属性60

RH 暗骰

掷出一个 1D100 的骰子 并发送至指令执行者的窗口

.rh

ST 录人物卡

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

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

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

SC 理智检定

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

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

.sc 1d8/1d3

TI/LI 疯狂检定

获取一个临时/总结的疯狂发作症状

.li #随机获取疯狂发作-总结症状

.ti #随机获取疯狂发作-临时症状

LOG 日志记录

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

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

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

相关与参考项目

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.4.tar.gz (17.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_orangedice-0.3.4-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nonebot-plugin-orangedice-0.3.4.tar.gz
Algorithm Hash digest
SHA256 0667abcab8e0245524b86c4bda4d69b6bf7c82258c0b51d51035ff945c6870c4
MD5 427e9ae94e7052154131ff9ff5e29faf
BLAKE2b-256 a88cbec3450bb6cbb60c5b0cc85f16e47e0f45f0986e80005c3284e1034fee09

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_orangedice-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d61b540d526506e97ccb475117d00fde95fec44783619d44d078904d0c86c575
MD5 0187eb6eeaff60794c8cd10ead9e620e
BLAKE2b-256 94271e27cde3d517ca19f7a41a92982859fc3d7f6724a5706c274880f7d2ddc2

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