mirror of
https://github.com/InsanusMokrassar/PlaguBotCommandsPlugin.git
synced 2025-09-15 21:29:18 +00:00
Compare commits
40 Commits
Author | SHA1 | Date | |
---|---|---|---|
f1d40f73c1 | |||
f5e15bbf0e | |||
229354c4a1 | |||
722aa93fd5 | |||
9833cf5f18 | |||
dcff436ed1 | |||
26f90e1bcc | |||
c5c641dfbd | |||
781026fb8e | |||
08387cd0c1 | |||
cce01759c4 | |||
4070c2b25d | |||
510f7003da | |||
9c8c7b0333 | |||
af0eefc0e2 | |||
e0572c1203 | |||
8f1c335dd4 | |||
88e8a0bfa3 | |||
bcff3d2480 | |||
3b46374525 | |||
07a263734e | |||
1f04f04744 | |||
ec1acfd215 | |||
7d5c350779 | |||
dc825a61b9 | |||
6941f7ef02 | |||
2e39ed4a76 | |||
21a17579a3 | |||
c96dfd8062 | |||
d54ae20571 | |||
4f25549bf5 | |||
47eefd0d77 | |||
ff44d8c547 | |||
a3a528bd19 | |||
814603f996 | |||
30b7a82355 | |||
277120c07b | |||
f9fab4741a | |||
84139e2c03 | |||
44524d847a |
44
CHANGELOG.md
44
CHANGELOG.md
@@ -1,5 +1,49 @@
|
||||
# Changelog
|
||||
|
||||
## 0.3.4
|
||||
|
||||
* `Versions`:
|
||||
* `plagubot`: `2.3.3`
|
||||
* `kslog`: `0.5.2`
|
||||
|
||||
## 0.3.3
|
||||
|
||||
* `Versions`:
|
||||
* `plagubot`: `2.3.1`
|
||||
|
||||
## 0.3.2
|
||||
|
||||
* `Versions`:
|
||||
* `plagubot`: `2.2.0`
|
||||
|
||||
## 0.3.1
|
||||
|
||||
* `Versions`:
|
||||
* `plagubot`: `2.1.0`
|
||||
* `kslog`: `0.5.1`
|
||||
|
||||
## 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`:
|
||||
|
40
README.md
40
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
|
||||
<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>
|
||||
```
|
||||
|
@@ -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.4
|
||||
|
@@ -1,10 +1,10 @@
|
||||
[versions]
|
||||
|
||||
kotlin = "1.6.21"
|
||||
plagubot = "1.3.0"
|
||||
kslog = "0.3.2"
|
||||
kotlin = "1.7.10"
|
||||
plagubot = "2.3.3"
|
||||
kslog = "0.5.2"
|
||||
gh-release = "2.4.1"
|
||||
jb-dokka = "1.6.21"
|
||||
jb-dokka = "1.7.10"
|
||||
|
||||
[libraries]
|
||||
|
||||
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -1,5 +1,5 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
|
@@ -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" }
|
||||
}
|
||||
|
Reference in New Issue
Block a user