45 Commits

Author SHA1 Message Date
9833cf5f18 Update CHANGELOG.md 2022-09-09 22:14:09 +06:00
dcff436ed1 Update libs.versions.toml 2022-09-09 22:13:55 +06:00
c5c641dfbd Update CHANGELOG.md 2022-09-09 15:33:38 +06:00
781026fb8e Update libs.versions.toml 2022-09-09 15:33:10 +06:00
08387cd0c1 start 0.3.3 2022-09-09 15:32:21 +06:00
cce01759c4 Merge pull request #9 from InsanusMokrassar/0.3.2
0.3.2
2022-08-31 11:06:33 +06:00
4070c2b25d Update CHANGELOG.md 2022-08-31 11:06:15 +06:00
510f7003da Update CHANGELOG.md 2022-08-31 11:06:05 +06:00
9c8c7b0333 Update libs.versions.toml 2022-08-31 11:05:06 +06:00
af0eefc0e2 start 0.3.2 2022-08-31 11:02:35 +06:00
e0572c1203 Merge pull request #8 from InsanusMokrassar/0.3.1
0.3.1
2022-08-18 17:16:57 +06:00
8f1c335dd4 Update CHANGELOG.md 2022-08-18 17:16:07 +06:00
88e8a0bfa3 Update gradle-wrapper.properties 2022-08-18 17:15:15 +06:00
bcff3d2480 Update libs.versions.toml 2022-08-18 17:14:50 +06:00
3b46374525 Update gradle.properties 2022-08-18 17:13:33 +06:00
07a263734e Merge pull request #7 from InsanusMokrassar/0.3.0
0.3.0
2022-08-06 01:37:37 +06:00
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
9ee3b26f7e Update libs.versions.toml 2022-07-11 12:40:24 +06:00
72407c0c8e Update CHANGELOG.md 2022-07-11 12:39:50 +06:00
2f62c44c18 Update gradle.properties 2022-07-11 12:38:20 +06:00
8c1c33fdf2 Update build.gradle 2022-07-10 01:48:51 +06:00
1f76c441e3 Update libs.versions.toml 2022-07-10 01:48:23 +06:00
9df1efd4c8 Update build.gradle 2022-07-10 01:45:54 +06:00
6372f8af9f Create kdocs.yml 2022-07-10 01:44:10 +06:00
acbc6ff45b Update build.gradle 2022-07-10 01:43:08 +06:00
f3c07f0a7d Update libs.versions.toml 2022-07-10 01:29:12 +06:00
7a62373030 Merge pull request #1 from InsanusMokrassar/0.1.0
0.1.0
2022-07-10 00:33:52 +06:00
8 changed files with 110 additions and 26 deletions

21
.github/workflows/kdocs.yml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: Publish KDocs
on:
push:
branches:
- master
jobs:
publishing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 11
- name: Build
run: ./gradlew dokkaHtml
- name: Publish KDocs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/dokka/html
publish_branch: kdocs

View File

@@ -1,5 +1,48 @@
# Changelog
## 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`:
* `plagubot`: `1.3.0`
## 0.1.0
* Project has been created

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

@@ -1,18 +1,21 @@
buildscript {
repositories {
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath libs.kotlin.gradle.plugin
classpath libs.kotlin.serialization.plugin
classpath libs.gh.release.plugin
classpath libs.jb.dokka.plugin
}
}
plugins {
alias libs.plugins.kotlin.jvm
alias libs.plugins.kotlin.serialization
alias libs.plugins.jetbrains.dokka
}
project.group = project_group
@@ -31,3 +34,17 @@ dependencies {
api libs.plagubot.plugin
api libs.kslog
}
tasks.dokkaHtml {
dokkaSourceSets {
configureEach {
skipDeprecated.set(true)
sourceLink {
localDirectory.set(file("./"))
remoteUrl.set(new URL("https://github.com/InsanusMokrassar/PlaguBotCommandsPlugin/blob/master/"))
remoteLineSuffix.set("#L")
}
}
}
}

View File

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

View File

@@ -1,9 +1,10 @@
[versions]
kotlin = "1.6.21"
plagubot = "1.2.3"
kslog = "0.3.2"
kotlin = "1.7.10"
plagubot = "2.3.1"
kslog = "0.5.1"
gh-release = "2.4.1"
jb-dokka = "1.7.10"
[libraries]
@@ -15,8 +16,10 @@ kslog = { module = "dev.inmo:kslog", version.ref = "kslog" }
kotlin-gradle-plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
kotlin-serialization-plugin = { module = "org.jetbrains.kotlin:kotlin-serialization", version.ref = "kotlin" }
gh-release-plugin = { module = "com.github.breadmoirai:github-release", version.ref = "gh-release" }
jb-dokka-plugin = { module = "org.jetbrains.dokka:dokka-gradle-plugin", version.ref = "jb-dokka" }
[plugins]
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
jetbrains-dokka = { id = "org.jetbrains.dokka", version.ref = "jb-dokka" }

View File

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

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