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

Method handleClear

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

Source from the content-addressed store, hash-verified

2080 // Check dependencies
2081 const deps = await this.downloader.checkDependencies();
2082 if (!deps.ytdlp) {
2083 await msg.edit({
2084 text: `❌ <b>缺少下载器</b>
2085
2086🛠️ <b>安装 yt-dlp:</b>
2087<code>sudo pip install --upgrade --force-reinstall yt-dlp --break-system-packages</code>
2088
2089🌐 <b>网络受限?配置代理:</b>
2090<code>${commandName} set proxy socks5://127.0.0.1:1080</code>
2091
2092🍪 <b>或设置 Cookie 绕过限制:</b>
2093<code>${commandName} set cookie [YouTube Cookie]</code>`,
2094 parseMode: "html",
2095 });
2096 return;
2097 }
2098

Callers 1

executeMethod · 0.95

Calls 2

cleanCacheMethod · 0.80
editMethod · 0.45

Tested by

no test coverage detected