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

Method execute

music/music.ts:1891–1918  ·  view source on GitHub ↗
(msg: Api.Message)

Source from the content-addressed store, hash-verified

1889
1890💡 <i>使用 <code>${commandName} set [配置项] [值]</code> 修改配置</i>`;
1891
1892 // 编辑原消息而不是回复
1893 await msg.edit({ text: status, parseMode: "html" });
1894 }
1895
1896 private async handleSet(msg: Api.Message, args: string[]): Promise<void> {
1897 if (args.length < 2) {
1898 // 编辑原消息而不是回复
1899 await msg.edit({
1900 text: `❌ <b>参数不足</b>
1901
1902<b>正确格式:</b>
1903<code>${commandName} set cookie [YouTube Cookie]</code>
1904<code>${commandName} set proxy [代理地址]</code>
1905<code>${commandName} set api_key [Gemini API密钥]</code>
1906<code>${commandName} set base_url [Gemini Base URL]</code>
1907<code>${commandName} set model [Gemini 模型]</code>
1908<code>${commandName} set quality [音质]</code>
1909
1910<b>代理配置示例:</b>
1911<code>${commandName} set proxy socks5://127.0.0.1:1080</code>
1912<code>${commandName} set proxy http://127.0.0.1:8080</code>
1913<code>${commandName} set proxy socks5://127.0.0.1:40000</code> (WireProxy)
1914<code>${commandName} set proxy none</code> (清空代理)
1915
1916<b>音质示例:</b>
1917<code>${commandName} set quality 320k</code>
1918<code>${commandName} set quality 192k</code>
1919<code>${commandName} set quality 0</code> (VBR 最高质量)`,
1920 parseMode: "html",
1921 });

Callers

nothing calls this directly

Calls 5

handleConfigMethod · 0.95
handleSetMethod · 0.95
handleClearMethod · 0.95
handleDownloadMethod · 0.95
editMethod · 0.45

Tested by

no test coverage detected