fix in CommandsPlugin double commands getting

This commit is contained in:
InsanusMokrassar committed 2022-07-24 11:46:06 +06:00
1 parent 814603f996
commit a3a528bd19
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -2,6 +2,8 @@
## 0.1.3
* Fix of double commands getting on a start of bot
## 0.1.2
* `Versions`:
+1 -1
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" }
}