mirror of
https://github.com/ZHANGTIANYAO1/teamspeak-music-bot.git
synced 2026-12-03 03:12:51 +08:00
fix(open-protocol): restore prefix-only command parsing and declare command_prefix in list_ack
This commit is contained in:
1 parent
263c1ba6da
commit
69b311283a
6 files changed
+26
-92
No files matched your search
+2
-2
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user