fix: forwardoff 之类指令出现在个人模式

This commit is contained in:
Clansty 2022-08-29 17:11:20 +08:00
parent 6121ea2680
commit e01c415b31
3 changed files with 18 additions and 2 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
use_nix

11
shell.nix Normal file
View File

@ -0,0 +1,11 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = with pkgs; [
yarn
nodejs-18_x
libwebp
python3
ffmpeg
vips
];
}

View File

@ -42,11 +42,15 @@ const personalPrivateSuperAdminCommands = [
];
// inChat 表示在关联了的转发群组中的命令
const groupInChatCommands = [
const inChatCommands = [
new Api.BotCommand({
command: 'info',
description: '查看本群或选定消息的详情',
}),
];
const groupInChatCommands = [
...inChatCommands,
new Api.BotCommand({
command: 'forwardoff',
description: '暂停消息转发',
@ -58,7 +62,7 @@ const groupInChatCommands = [
];
const personalInChatCommands = [
...groupInChatCommands,
...inChatCommands,
new Api.BotCommand({
command: 'refresh',
description: '刷新头像和简介',