From 9fa4a7b8643e07e47f25589a953399f6839ee2e7 Mon Sep 17 00:00:00 2001 From: Jannik Reimers Date: Fri, 25 Oct 2024 10:17:02 +0200 Subject: [PATCH] erm --- detekt.yml | 2 +- .../kotlin/dev/jansel/feixiao/extensions/TestExtension.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/detekt.yml b/detekt.yml index 6250328..fd719fb 100644 --- a/detekt.yml +++ b/detekt.yml @@ -395,7 +395,7 @@ naming: InvalidPackageDeclaration: active: true # TODO: Update this with your project's base package - rootPackage: 'dev.jansel.template' + rootPackage: 'dev.jansel.feixiao' MatchingDeclarationName: active: true diff --git a/src/main/kotlin/dev/jansel/feixiao/extensions/TestExtension.kt b/src/main/kotlin/dev/jansel/feixiao/extensions/TestExtension.kt index 5dca05b..2dabe27 100644 --- a/src/main/kotlin/dev/jansel/feixiao/extensions/TestExtension.kt +++ b/src/main/kotlin/dev/jansel/feixiao/extensions/TestExtension.kt @@ -16,7 +16,7 @@ class TestExtension : Extension() { override val name = "test" override suspend fun setup() { - chatCommand(TestExtension::SlapArgs) { + chatCommand(::SlapArgs) { name = "slap" description = "Ask the bot to slap another user" @@ -57,7 +57,7 @@ class TestExtension : Extension() { } } - publicSlashCommand(TestExtension::SlapSlashArgs) { + publicSlashCommand(::SlapSlashArgs) { name = "slap" description = "Ask the bot to slap another user"