From 814603f9964255b155231cc04d34ba97a2c96207 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 24 Jul 2022 11:44:53 +0600 Subject: [PATCH 1/3] start 0.1.3 --- CHANGELOG.md | 2 ++ gradle.properties | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bffa4c9..aa0143e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog +## 0.1.3 + ## 0.1.2 * `Versions`: diff --git a/gradle.properties b/gradle.properties index 371d892..9c4c98c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,4 +4,4 @@ kotlin.js.generate.externals=true kotlin.incremental=true project_group=dev.inmo -project_version=0.1.2 +project_version=0.1.3 From a3a528bd19c1060060947ad7e35b7c063bca764d Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 24 Jul 2022 11:46:06 +0600 Subject: [PATCH 2/3] fix in CommandsPlugin double commands getting --- CHANGELOG.md | 2 ++ src/main/kotlin/CommandsPlugin.kt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aa0143e..24bb27e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## 0.1.3 +* Fix of double commands getting on a start of bot + ## 0.1.2 * `Versions`: diff --git a/src/main/kotlin/CommandsPlugin.kt b/src/main/kotlin/CommandsPlugin.kt index 2e6f496..bec80df 100644 --- a/src/main/kotlin/CommandsPlugin.kt +++ b/src/main/kotlin/CommandsPlugin.kt @@ -72,7 +72,7 @@ object CommandsPlugin : Plugin { commandsKeeper.getKeys().forEach { val commands = commandsKeeper.getCommands(it) log.d { "Start setup initially passed commands for key $it: ${commands ?.joinToString { it.command }}" } - setScopeCommands(it, commandsKeeper.getCommands(it)) + setScopeCommands(it, commands) } log.d { "Complete setup initially passed commands" } } From ff44d8c547999b804291d63b597e3fe655f9323a Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 24 Jul 2022 11:50:47 +0600 Subject: [PATCH 3/3] update readme --- README.md | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index a3ed23c..c523734 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,26 @@ This plugin has been created for centralized work with commands in your plugins. You may pass your commands (even in runtime) and they will automatically appear in bot commands for users +## How to include + +Add dependency: + +Gradle: + +```groovy +api "dev.inmo:plagubot.plugins.commands:$commands_version" +``` + +Maven: + +```xml + + dev.inmo + plagubot.plugins.commands + ${commands_version} + +``` + ## How to use End user should include in his plugins section next line: @@ -54,23 +74,3 @@ retrieved from `koin` via simple `koin.get()` or `koin.commandsK Just as in the code above (in `setupDI`) you may pass all the command environment and it will be automatically updated for bot. - -## How to include - -Add dependency: - -Gradle: - -```groovy -api "dev.inmo:plagubot.plugins.commands:$commands_version" -``` - -Maven: - -```xml - - dev.inmo - plagubot.plugins.commands - ${commands_version} - -```