Merge pull request #62 from lixiang810/raincandy

This commit is contained in:
凌莞~(=^▽^=) 2022-10-18 18:53:55 +08:00 committed by GitHub
commit f1fb1275c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;