MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / formatTossLine

Function formatTossLine

zhijiao/zhijiao.ts:133–140  ·  view source on GitHub ↗
(index: number, toss?: TossResult)

Source from the content-addressed store, hash-verified

131 const symbol = TOSS_SYMBOLS[toss];
132 return `第${index + 1}投:${toss} ${symbol}`;
133}
134
135class ZhijiaoPlugin extends Plugin {
136 description: string = `\n掷筊\n强随机 使用 笅杯卦辞廿七句\n${help_text}`;
137 cmdHandlers: Record<
138 string,
139 (msg: Api.Message, trigger?: Api.Message) => Promise<void>
140 > = {
141 zhijiao: async (msg: Api.Message, trigger?: Api.Message) => {
142 const { tosses, combination, jiaci, interpretation } = cast();
143

Callers 2

buildProgressTextMethod · 0.85
ZhijiaoPluginClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected