🐛 Bug: new command cannot be found in chats

This commit is contained in:
lixiang810 2022-10-18 18:48:40 +08:00
parent 2864d1db8f
commit 2ef0470c47
No known key found for this signature in database
GPG Key ID: 100C8FEC03AA777E
2 changed files with 8 additions and 8 deletions

View File

@ -61,10 +61,10 @@ const groupInChatCommands = [
command: "forwardon",
description: "恢复消息转发",
}),
new Api.BotCommand({ command: "disableQQForward", description: "停止从QQ转发至TG" }),
new Api.BotCommand({ command: "enableQQForward", description: "恢复从QQ转发至TG" }),
new Api.BotCommand({ command: "disableTGForward", description: "停止从TG转发至QQ" }),
new Api.BotCommand({ command: "enableTGForward", description: "恢复从TG转发至QQ" }),
new Api.BotCommand({ command: "disable_qq_forward", description: "停止从QQ转发至TG" }),
new Api.BotCommand({ command: "enable_qq_forward", description: "恢复从QQ转发至TG" }),
new Api.BotCommand({ command: "disable_tg_forward", description: "停止从TG转发至QQ" }),
new Api.BotCommand({ command: "enable_tg_forward", description: "恢复从TG转发至QQ" }),
];
const personalInChatCommands = [

View File

@ -48,19 +48,19 @@ export default class InChatCommandsController {
pair.enable = true;
await message.reply({ message: "转发已启用" });
return true;
case "/disableQQForward":
case "/disable_qq_forward":
pair.disableQ2TG = true;
await message.reply({ message: "QQ->TG已禁用" });
return true;
case "/enableQQForward":
case "/enable_qq_forward":
pair.disableQ2TG = false;
await message.reply({ message: "QQ->TG已启用" });
return true;
case "/disableTGForward":
case "/disable_tg_forward":
pair.disableTG2Q = true;
await message.reply({ message: "TG->QQ已禁用" });
return true;
case "/enableTGForward":
case "/enable_tg_forward":
pair.disableTG2Q = false;
await message.reply({ message: "TG->QQ已启用" });
return true;