mirror of
https://github.com/ZHANGTIANYAO1/teamspeak-music-bot.git
synced 2026-12-03 11:22:51 +08:00
feat(open-protocol): add OpenProtocol v1 discovery and slash-command support
This commit is contained in:
1 parent
17008ae52e
commit
263c1ba6da
16 files changed
+1359
-183
No files matched your search
+7
-8
@@ -10,12 +10,12 @@ import { QQMusicProvider } from "./src/music/qq.js";
|
||||
import { BotManager } from "./src/bot/manager.js";
|
||||
import { createWebServer } from "./src/web/server.js";
|
||||
import {
|
||||
Client as TS3FullClient,
|
||||
generateIdentity,
|
||||
listClients,
|
||||
sendTextMessage,
|
||||
consoleLogger,
|
||||
} from "@honeybbq/teamspeak-client";
|
||||
} from "@honeybbq/teamspeak";
|
||||
import {
|
||||
Client as TS3FullClient,
|
||||
generateIdentitySync,
|
||||
} from "@honeybbq/teamspeak/client";
|
||||
|
||||
const logger = createLogger();
|
||||
let passed = 0;
|
||||
@@ -83,7 +83,7 @@ async function main() {
|
||||
// ═══ Test 2: Verify bot is visible using a second client ═══
|
||||
log("\n═══ Test 2: Verify Bot Visibility ═══");
|
||||
|
||||
const verifyIdentity = generateIdentity(8);
|
||||
const verifyIdentity = generateIdentitySync(8);
|
||||
const verifyClient = new TS3FullClient(
|
||||
verifyIdentity,
|
||||
"127.0.0.1:9987",
|
||||
@@ -92,8 +92,7 @@ async function main() {
|
||||
);
|
||||
|
||||
await verifyClient.connect();
|
||||
await verifyClient.waitConnected();
|
||||
log(` Verification client connected (id=${verifyClient.clientID()})`);
|
||||
log(` Verification client connected (id=${verifyClient.clientID})`);
|
||||
|
||||
try {
|
||||
const clients = await listClients(verifyClient);
|
||||
|
||||
Reference in new issue
Block a user