We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95e3e53 commit 999b563Copy full SHA for 999b563
1 file changed
src/controller/command.ts
@@ -5,6 +5,7 @@ import { COMMANDS } from "../helper";
5
import { AdminCommand } from "../group-management/AdminCommand";
6
import { Logger } from "../config/logger";
7
import { RateLimiter } from "../helper/RateLimiter";
8
+import { initGroupSetting } from "../decorators/db";
9
const logger = new Logger({
10
file: "command.log",
11
level: "debug",
@@ -52,6 +53,7 @@ export class Command {
52
53
}
54
55
@SafeExecution()
56
+ @initGroupSetting()
57
static async handleCommand(ctx: Context): Promise<void> {
58
const userId = ctx.from?.id;
59
if (!userId) return;
0 commit comments