mirror of
https://github.com/InsanusMokrassar/PlaguBotCommandsPlugin.git
synced 2024-11-23 16:28:43 +00:00
fix in CommandsPlugin double commands getting
This commit is contained in:
parent
814603f996
commit
a3a528bd19
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
## 0.1.3
|
## 0.1.3
|
||||||
|
|
||||||
|
* Fix of double commands getting on a start of bot
|
||||||
|
|
||||||
## 0.1.2
|
## 0.1.2
|
||||||
|
|
||||||
* `Versions`:
|
* `Versions`:
|
||||||
|
@ -72,7 +72,7 @@ object CommandsPlugin : Plugin {
|
|||||||
commandsKeeper.getKeys().forEach {
|
commandsKeeper.getKeys().forEach {
|
||||||
val commands = commandsKeeper.getCommands(it)
|
val commands = commandsKeeper.getCommands(it)
|
||||||
log.d { "Start setup initially passed commands for key $it: ${commands ?.joinToString { it.command }}" }
|
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" }
|
log.d { "Complete setup initially passed commands" }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user