sealdice-snippets
本扩展提供了海豹TRPG骰点核心的扩展开发常用代码片段。
在ts/js/txt文件中:
名称 |
触发词 |
说明 |
Extension Header |
"extension header","header" |
插入JS插件头部信息 |
New Extension |
"new extension","ext" |
创建新的扩展 |
New Command |
"new command","cmd" |
创建新的命令 |
Reply To Sender |
"replyToSender","rts","reply" |
向消息发送者发送回应 |
Return |
"return","ret" |
返回指令结果对象 |
Timestamp |
"timestamp" |
插入秒级UNIX时间戳 |
Datetime |
"datetime" |
插入形似“2023-02-17 13:22:50”的时间字符串 |
在json文件中:
名称 |
触发词 |
说明 |
Header |
"header" |
插入牌堆头部信息 |
Weight |
"::","::" |
插入权重数字,如:“::x::” |
Variable |
"$t" |
插入临时变量 |
Image |
"img","image" |
插入图片CQ码 |
New |
"new",""" |
插入新牌组 |
New Inline |
"new",""" |
插入新牌组(单行) |
Draw |
"draw","#" |
全局抽取其他牌组,即#{DRAW-牌组名} |
若json牌堆文件命名为“decks.json”,则会关联对应的JSON Schema,从而拥有一定的格式校验能力
| |