From 513959d4a7fcf0d1d5de4aae22901689d078f5c7 Mon Sep 17 00:00:00 2001 From: Ahmad Ansori Palembani Date: Fri, 23 May 2025 15:12:34 +0700 Subject: [PATCH] chore: Testing group inside group --- .../null2264/tsukumogami/bot/core/module/GeneralModule.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bot/src/main/kotlin/io/github/null2264/tsukumogami/bot/core/module/GeneralModule.kt b/bot/src/main/kotlin/io/github/null2264/tsukumogami/bot/core/module/GeneralModule.kt index 0591074..60b6ff4 100644 --- a/bot/src/main/kotlin/io/github/null2264/tsukumogami/bot/core/module/GeneralModule.kt +++ b/bot/src/main/kotlin/io/github/null2264/tsukumogami/bot/core/module/GeneralModule.kt @@ -14,7 +14,10 @@ val generalModule = botModules("General") { } groups("group") { - commands("test", arguments = ::Test2Arguments) { ctx, args -> ctx.send("Hello world ${args.user}") } + commands("test", arguments = ::Test2Arguments) { ctx, args -> ctx.reply("Hello world ${args.user}") } + groups("group") { + commands("test", arguments = ::TestArguments) { ctx, args -> ctx.reply("Hello world ${args.test}") } + } } commands("test", arguments = ::TestArguments) { ctx, args -> ctx.send("Hello world ${args.test}") }