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

Method showConfig

xmsl/xmsl.ts:544–555  ·  view source on GitHub ↗
(msg: Api.Message)

Source from the content-addressed store, hash-verified

542url: <code>${htmlEscape(this.config.baseUrl.replace(/\/$/, ''))}</code>
543model: <code>${htmlEscape(this.config.model)}</code>
544
545使用 <code>${mainPrefix}xm set [key] [value]</code> 修改配置`;
546
547 await msg.edit({ text: configText, parseMode: 'html' });
548 }
549
550 private async askAI(msg: Api.Message, question: string, imageInfo?: MediaInfo) {
551 if (!this.config.apiKey) {
552 await msg.edit({
553 text: `❌ 未设置 API 密钥\n使用: <code>${mainPrefix}xm set key [你的密钥]</code>`,
554 parseMode: 'html',
555 });
556 return;
557 }
558

Callers 1

handleXmslMethod · 0.95

Calls 2

htmlEscapeMethod · 0.95
editMethod · 0.45

Tested by

no test coverage detected