19 Commits

Author SHA1 Message Date
1f04f04744 Update CHANGELOG.md 2022-08-05 22:20:06 +06:00
ec1acfd215 Update libs.versions.toml 2022-08-05 22:18:54 +06:00
7d5c350779 start 0.3.0 2022-08-05 22:17:55 +06:00
dc825a61b9 Merge pull request #6 from InsanusMokrassar/0.2.1
0.2.1
2022-08-03 09:41:26 +06:00
6941f7ef02 Update CHANGELOG.md 2022-08-03 09:33:43 +06:00
2e39ed4a76 Update libs.versions.toml 2022-08-03 09:31:39 +06:00
21a17579a3 start 0.2.1 2022-08-03 09:31:00 +06:00
c96dfd8062 Merge pull request #5 from InsanusMokrassar/0.2.0
0.2.0
2022-07-30 20:55:57 +06:00
d54ae20571 Update libs.versions.toml 2022-07-30 20:39:01 +06:00
4f25549bf5 start 0.2.0 2022-07-30 20:37:43 +06:00
47eefd0d77 Merge pull request #4 from InsanusMokrassar/0.1.3
0.1.3
2022-07-24 11:51:59 +06:00
ff44d8c547 update readme 2022-07-24 11:50:47 +06:00
a3a528bd19 fix in CommandsPlugin double commands getting 2022-07-24 11:46:06 +06:00
814603f996 start 0.1.3 2022-07-24 11:44:53 +06:00
30b7a82355 Merge pull request #3 from InsanusMokrassar/0.1.2
0.1.2
2022-07-22 23:55:21 +06:00
277120c07b Update CHANGELOG.md 2022-07-22 23:52:44 +06:00
f9fab4741a Update libs.versions.toml 2022-07-22 21:27:04 +06:00
84139e2c03 start 0.1.2 2022-07-22 21:25:21 +06:00
44524d847a Merge pull request #2 from InsanusMokrassar/0.1.1
0.1.1
2022-07-11 12:55:45 +06:00
5 changed files with 48 additions and 26 deletions

View File

@@ -1,5 +1,27 @@
# Changelog
## 0.3.0
* `Versions`:
* `kotlin`: `1.7.10`
* `plagubot`: `2.0.0`
* `kslog`: `0.5.0`
## 0.2.1
* `Versions`:
* `plagubot`: `1.4.1`
* `kslog`: `0.4.2`
## 0.1.3
* Fix of double commands getting on a start of bot
## 0.1.2
* `Versions`:
* `plagubot`: `1.3.1`
## 0.1.1
* `Versions`:

View File

@@ -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
<dependency>
<groupId>dev.inmo</groupId>
<artifactId>plagubot.plugins.commands</artifactId>
<version>${commands_version}</version>
</dependency>
```
## How to use
End user should include in his plugins section next line:
@@ -54,23 +74,3 @@ retrieved from `koin` via simple `koin.get<CommandsKeeper>()` 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
<dependency>
<groupId>dev.inmo</groupId>
<artifactId>plagubot.plugins.commands</artifactId>
<version>${commands_version}</version>
</dependency>
```

View File

@@ -4,4 +4,4 @@ kotlin.js.generate.externals=true
kotlin.incremental=true
project_group=dev.inmo
project_version=0.1.1
project_version=0.3.0

View File

@@ -1,10 +1,10 @@
[versions]
kotlin = "1.6.21"
plagubot = "1.3.0"
kslog = "0.3.2"
kotlin = "1.7.10"
plagubot = "2.0.0"
kslog = "0.5.0"
gh-release = "2.4.1"
jb-dokka = "1.6.21"
jb-dokka = "1.7.10"
[libraries]

View File

@@ -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" }
}