fix(open-protocol): restore prefix-only command parsing and declare command_prefix in list_ack

This commit is contained in:
Dr1mH4X committed 2026-11-15 12:14:05 +08:00
1 parent 263c1ba6da
commit 69b311283a
6 files changed
+26 -92

No files matched your search

+2 -2
View File
@@ -12,7 +12,7 @@ import { AudioPlayer } from "../audio/player.js";
import { PlayQueue, PlayMode, type QueuedSong } from "../audio/queue.js";
import type { MusicProvider, Platform, Song } from "../music/provider.js";
import {
parseCommandWithFallback,
parseCommand,
canRunCommand,
type ParsedCommand,
} from "./commands.js";
@@ -823,7 +823,7 @@ export class BotInstance extends EventEmitter {
}
private async handleTextMessage(msg: TS3TextMessage): Promise<void> {
const parsed = parseCommandWithFallback(
const parsed = parseCommand(
msg.message,
this.config.commandPrefix,
this.config.commandAliases,