Skip to content

Commit 1fd8256

Browse files
NoComment1105dependabot[bot]TheKodeToadgdude2002
authored
LilyBot 5.0.0 (#422)
* Bump detekt from 1.23.1 to 1.23.3 (#362) Bumps `detekt` from 1.23.1 to 1.23.3. Updates `io.gitlab.arturbosch.detekt:detekt-formatting` from 1.23.1 to 1.23.3 - [Release notes](https://github.com/detekt/detekt/releases) - [Commits](detekt/detekt@v1.23.1...v1.23.3) Updates `io.gitlab.arturbosch.detekt` from 1.23.1 to 1.23.3 - [Release notes](https://github.com/detekt/detekt/releases) - [Commits](detekt/detekt@v1.23.1...v1.23.3) --- updated-dependencies: - dependency-name: io.gitlab.arturbosch.detekt:detekt-formatting dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: io.gitlab.arturbosch.detekt dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump kotlin from 1.9.10 to 1.9.20 (#363) Bumps `kotlin` from 1.9.10 to 1.9.20. Updates `org.jetbrains.kotlin.jvm` from 1.9.10 to 1.9.20 - [Release notes](https://github.com/JetBrains/kotlin/releases) - [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md) - [Commits](JetBrains/kotlin@v1.9.10...v1.9.20) Updates `org.jetbrains.kotlin.plugin.serialization` from 1.9.10 to 1.9.20 - [Release notes](https://github.com/JetBrains/kotlin/releases) - [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md) - [Commits](JetBrains/kotlin@v1.9.10...v1.9.20) --- updated-dependencies: - dependency-name: org.jetbrains.kotlin.jvm dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: org.jetbrains.kotlin.plugin.serialization dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump org.litote.kmongo:kmongo-coroutine-serialization (#364) Bumps [org.litote.kmongo:kmongo-coroutine-serialization](https://github.com/Litote/kmongo) from 4.10.0 to 4.11.0. - [Release notes](https://github.com/Litote/kmongo/releases) - [Commits](Litote/kmongo@kmongo-4.10.0...kmongo-4.11.0) --- updated-dependencies: - dependency-name: org.litote.kmongo:kmongo-coroutine-serialization dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump io.github.oshai:kotlin-logging from 5.1.0 to 5.1.1 (#366) Bumps [io.github.oshai:kotlin-logging](https://github.com/oshai/kotlin-logging) from 5.1.0 to 5.1.1. - [Release notes](https://github.com/oshai/kotlin-logging/releases) - [Changelog](https://github.com/oshai/kotlin-logging/blob/master/ChangeLog-old.md) - [Commits](oshai/kotlin-logging@5.1.0...5.1.1) --- updated-dependencies: - dependency-name: io.github.oshai:kotlin-logging dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump AButler/upload-release-assets from 2.0 to 3.0 (#367) Bumps [AButler/upload-release-assets](https://github.com/abutler/upload-release-assets) from 2.0 to 3.0. - [Release notes](https://github.com/abutler/upload-release-assets/releases) - [Commits](AButler/upload-release-assets@v2.0...v3.0) --- updated-dependencies: - dependency-name: AButler/upload-release-assets dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump kotlin from 1.9.20 to 1.9.21 (#368) * Bump kotlin from 1.9.20 to 1.9.21 Bumps `kotlin` from 1.9.20 to 1.9.21. Updates `org.jetbrains.kotlin.jvm` from 1.9.20 to 1.9.21 - [Release notes](https://github.com/JetBrains/kotlin/releases) - [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md) - [Commits](JetBrains/kotlin@v1.9.20...v1.9.21) Updates `org.jetbrains.kotlin.plugin.serialization` from 1.9.20 to 1.9.21 - [Release notes](https://github.com/JetBrains/kotlin/releases) - [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md) - [Commits](JetBrains/kotlin@v1.9.20...v1.9.21) --- updated-dependencies: - dependency-name: org.jetbrains.kotlin.jvm dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: org.jetbrains.kotlin.plugin.serialization dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Update libs.versions.toml --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: NoComment <[email protected]> * Bump detekt from 1.23.3 to 1.23.4 (#369) Bumps `detekt` from 1.23.3 to 1.23.4. Updates `io.gitlab.arturbosch.detekt:detekt-formatting` from 1.23.3 to 1.23.4 - [Release notes](https://github.com/detekt/detekt/releases) - [Commits](detekt/detekt@v1.23.3...v1.23.4) Updates `io.gitlab.arturbosch.detekt` from 1.23.3 to 1.23.4 - [Release notes](https://github.com/detekt/detekt/releases) - [Commits](detekt/detekt@v1.23.3...v1.23.4) --- updated-dependencies: - dependency-name: io.gitlab.arturbosch.detekt:detekt-formatting dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: io.gitlab.arturbosch.detekt dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump ch.qos.logback:logback-classic from 1.4.11 to 1.4.14 (#371) Bumps [ch.qos.logback:logback-classic](https://github.com/qos-ch/logback) from 1.4.11 to 1.4.14. - [Commits](qos-ch/logback@v_1.4.11...v_1.4.14) --- updated-dependencies: - dependency-name: ch.qos.logback:logback-classic dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/setup-java from 3 to 4 (#372) Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3 to 4. - [Release notes](https://github.com/actions/setup-java/releases) - [Commits](actions/setup-java@v3...v4) --- updated-dependencies: - dependency-name: actions/setup-java dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/upload-artifact from 3 to 4 (#374) Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](actions/upload-artifact@v3...v4) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update to Kordex 1.7.1-SNAPSHOT * Remove redundant codec * Update dependencies and upgradle (still hilarious) * Update dependencies * Fix cancelling reminders with moderation command. Turns out we were trying to cancel the reminder for the command executor haha very optimal * Add 'Auto-invite Moderator Role' option (#382) * Add 'Auto-invite Moderator Role' option * Fix v7 migration * Fix compilation * Fix unpinning/pinning of old messages causing edit log (#381) * Update dependencies * Bump org.kohsuke:github-api from 1.318 to 1.319 (#385) Bumps [org.kohsuke:github-api](https://github.com/hub4j/github-api) from 1.318 to 1.319. - [Release notes](https://github.com/hub4j/github-api/releases) - [Changelog](https://github.com/hub4j/github-api/blob/main/CHANGELOG.md) - [Commits](hub4j/github-api@github-api-1.318...github-api-1.319) --- updated-dependencies: - dependency-name: org.kohsuke:github-api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump kotlin from 1.9.22 to 1.9.23 (#390) Bumps `kotlin` from 1.9.22 to 1.9.23. Updates `org.jetbrains.kotlin.jvm` from 1.9.22 to 1.9.23 - [Release notes](https://github.com/JetBrains/kotlin/releases) - [Changelog](https://github.com/JetBrains/kotlin/blob/v1.9.23/ChangeLog.md) - [Commits](JetBrains/kotlin@v1.9.22...v1.9.23) Updates `org.jetbrains.kotlin.plugin.serialization` from 1.9.22 to 1.9.23 - [Release notes](https://github.com/JetBrains/kotlin/releases) - [Changelog](https://github.com/JetBrains/kotlin/blob/v1.9.23/ChangeLog.md) - [Commits](JetBrains/kotlin@v1.9.22...v1.9.23) --- updated-dependencies: - dependency-name: org.jetbrains.kotlin.jvm dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: org.jetbrains.kotlin.plugin.serialization dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump ch.qos.logback:logback-classic from 1.5.0 to 1.5.3 (#388) Bumps [ch.qos.logback:logback-classic](https://github.com/qos-ch/logback) from 1.5.0 to 1.5.3. - [Commits](qos-ch/logback@v_1.5.0...v_1.5.3) --- updated-dependencies: - dependency-name: ch.qos.logback:logback-classic dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: NoComment <[email protected]> * Create a moderation arguments class to shrink the arguments down * Revert "Create a moderation arguments class to shrink the arguments down" This reverts commit b82f7ef. * Allow multiple roles to be pinged on auto-threads (#386) * Allow multiple roles to be pinged in auto-threaded channels * Add migration for new issue * Fix doc file * Update dependencies * Implement temporary bans (#391) * Revert "Create a moderation arguments class to shrink the arguments down" This reverts commit b82f7ef. * Implement temporary bans * Apply review comments - Remove temp-ban remove, incorporate into unban - Remove soft-ban, incorporate into main ban command * Fix typo in command option description * Fix permissions being lost by locked channels when unlocked (#395) * Begin work on storing original permissions when locking channels * Complete work on storing original permission for locked channels * Bump ch.qos.logback:logback-classic from 1.5.3 to 1.5.6 (#398) Bumps [ch.qos.logback:logback-classic](https://github.com/qos-ch/logback) from 1.5.3 to 1.5.6. - [Commits](qos-ch/logback@v_1.5.3...v_1.5.6) --- updated-dependencies: - dependency-name: ch.qos.logback:logback-classic dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump io.github.oshai:kotlin-logging from 6.0.4 to 6.0.9 (#397) Bumps [io.github.oshai:kotlin-logging](https://github.com/oshai/kotlin-logging) from 6.0.4 to 6.0.9. - [Release notes](https://github.com/oshai/kotlin-logging/releases) - [Changelog](https://github.com/oshai/kotlin-logging/blob/master/ChangeLog-old.md) - [Commits](oshai/kotlin-logging@6.0.4...6.0.9) --- updated-dependencies: - dependency-name: io.github.oshai:kotlin-logging dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: NoComment <[email protected]> * Fix lily being unable to unlock channels after she locks them * Hopefully avoid funny embeds appearing when messages don't change properly * Bump org.kohsuke:github-api from 1.321 to 1.322 (#406) Bumps [org.kohsuke:github-api](https://github.com/hub4j/github-api) from 1.321 to 1.322. - [Release notes](https://github.com/hub4j/github-api/releases) - [Changelog](https://github.com/hub4j/github-api/blob/main/CHANGELOG.md) - [Commits](hub4j/github-api@github-api-1.321...github-api-1.322) --- updated-dependencies: - dependency-name: org.kohsuke:github-api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update to Kotlin 2 * Update to Java 21 😎 * Update dependencies and gradle * Update KordEx, Kotlin, Gradle, fix small K2 warnings (#413) * Update KordEx, Kotlin, Gradle, fix small K2 warnings * Yeet unnecessary Gradle task * Configure the about command * Address comments * Update KordEx to 2.1.0 Hopefully this is it! * Update to KordEx 2.2.0, other dependencies * Package restructure (#417) * Refactor package structure attempt 2 * Fix package references :D * Split out config view and clear * More event logging (#410) * Start work on audit-log event based logging * Refactor it all because yes * Create action transferring database to move important information over to the event action * Log Kicks, send quick actions to db, generalise channel creation logs * Start work on channel updates * Add the rest of the channel update fields * Fully set up channel edit logging * Add scheduled event logging * Invite events and Role events * Thread creates and deletes logging + updated kordex * Log timeouts created by lily * Fix timeout logging, yeehaw actual code is done now * Add docs * Fix package references * Remove the logging, however funny it was to me it is not needed * Complete merge * Add configuration, split down into two event categories * Update migrations for utility config * Reduce code duplication and rename some packages * Fix formatting of applied tags * Reduce some duplication here and there * Dm default false (#421) * Theoretically make the DM option default to a certain value. Needs testing :) * Forgot migration 😎 * Well, lets do this I guess --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: TheKodeToad <[email protected]> Co-authored-by: Gareth Coles <[email protected]>
1 parent 6b2fb8c commit 1fd8256

File tree

89 files changed

+3818
-1849
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+3818
-1849
lines changed

.editorconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ indent_style = tab
1212

1313
[*.kt]
1414
indent_style = tab
15-
ij_kotlin_name_count_to_use_star_import = 99999
16-
ij_kotlin_name_count_to_use_star_import_for_members = 99999
1715

1816
[*.properties]
1917
indent_style = space

.github/workflows/gradle.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v4
1616

17-
- name: Set up JDK 17
17+
- name: Set up JDK 21
1818
uses: actions/setup-java@v4
1919

2020
with:
2121
distribution: 'temurin'
22-
java-version: 17
22+
java-version: 21
2323

2424
- name: Grant execute permission for gradlew
2525
run: chmod +x gradlew
2626

27-
- name: Build Artifacts
28-
uses: gradle/gradle-build-action@v3
29-
with:
30-
arguments: build --stacktrace
31-
gradle-home-cache-cleanup: true
27+
- name: Setup Gradle
28+
uses: gradle/actions/setup-gradle@v4
29+
30+
- name: Build Project
31+
run: ./gradlew build --stacktrace
3232

3333
- name: Upload build artifacts
3434
uses: actions/upload-artifact@v4

.github/workflows/main.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v4
1414

15-
- name: Set up JDK 17
15+
- name: Set up JDK 21
1616
uses: actions/setup-java@v4
1717

1818
with:
1919
distribution: 'temurin'
20-
java-version: 17
20+
java-version: 21
2121

2222
- name: Grant execute permission for gradlew
2323
run: chmod +x gradlew
2424

25-
- name: Build Artifacts
26-
uses: gradle/gradle-build-action@v3
27-
with:
28-
arguments: build --stacktrace
29-
gradle-home-cache-cleanup: true
25+
- name: Setup Gradle
26+
uses: gradle/actions/setup-gradle@v4
27+
28+
- name: Build Project
29+
run: ./gradlew build --stacktrace
3030

3131
- name: Upload build artifacts
3232
uses: actions/upload-artifact@v4

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@ jobs:
1313
- name: Checkout sources
1414
uses: actions/checkout@v4
1515

16-
- name: Set up JDK 17
16+
- name: Set up JDK 21
1717
uses: actions/setup-java@v4
1818

1919
with:
2020
distribution: 'temurin'
21-
java-version: 17
21+
java-version: 21
2222

2323
- name: Grant execute permission for gradlew
2424
run: chmod +x gradlew
2525

26-
- name: Build Artifacts
27-
uses: gradle/gradle-build-action@v3
28-
with:
29-
arguments: build --stacktrace
30-
gradle-home-cache-cleanup: true
26+
- name: Setup Gradle
27+
uses: gradle/actions/setup-gradle@v4
28+
29+
- name: Build Project
30+
run: ./gradlew build --stacktrace
3131

3232
- name: Upload artifacts GitHub
3333
uses: AButler/[email protected]

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ build/
55
out/
66
classes/
77

8+
# kotlin
9+
.kotlin/
10+
811
# eclipse
912

1013
*.launch

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM openjdk:17-jdk-slim
1+
FROM openjdk:21-jdk-slim
22

33
RUN mkdir /bot
44
RUN mkdir /data

build.gradle.kts

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ plugins {
1515
}
1616

1717
group = "org.hyacinthbots.lilybot"
18-
version = "4.9.0"
18+
version = "5.0.0"
19+
20+
val className = "org.hyacinthbots.lilybot.LilyBotKt"
1921

2022
repositories {
2123
mavenCentral()
@@ -30,6 +32,11 @@ repositories {
3032
url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
3133
}
3234

35+
maven {
36+
name = "Kord Extensions (Snapshots)"
37+
url = uri("https://snapshots-repo.kordex.dev")
38+
}
39+
3340
maven {
3441
name = "JitPack"
3542
url = uri("https://jitpack.io")
@@ -61,7 +68,7 @@ dependencies {
6168
}
6269

6370
application {
64-
mainClass.set("org.hyacinthbots.lilybot.LilyBotKt")
71+
mainClass.set(className)
6572
}
6673

6774
gitHooks {
@@ -73,16 +80,21 @@ gitHooks {
7380
tasks {
7481
withType<KotlinCompile> {
7582
compilerOptions {
76-
jvmTarget.set(JvmTarget.fromTarget("17"))
83+
jvmTarget.set(JvmTarget.fromTarget("21"))
7784
languageVersion.set(KotlinVersion.fromVersion(libs.plugins.kotlin.get().version.requiredVersion.substringBeforeLast(".")))
7885
incremental = true
7986
freeCompilerArgs.add("-opt-in=kotlin.RequiresOptIn")
8087
}
8188
}
8289

90+
java { // Should match the Kotlin compiler options ideally
91+
sourceCompatibility = JavaVersion.toVersion("21")
92+
targetCompatibility = JavaVersion.toVersion("21")
93+
}
94+
8395
jar {
8496
manifest {
85-
attributes("Main-Class" to "org.hyacinthbots.lilybot.LilyBotKt")
97+
attributes("Main-Class" to className)
8698
}
8799
}
88100

detekt.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ formatting:
175175
active: true
176176
autoCorrect: true
177177
NoWildcardImports:
178+
active: false
178179
packagesToUseImportOnDemandProperty: ""
179180
PackageName:
180181
active: true
@@ -361,3 +362,5 @@ style:
361362
active: true
362363
UseRequireNotNull:
363364
active: true
365+
WildcardImport:
366+
active: false

docs/commands.md

Lines changed: 60 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
## Slash Commands
22

3+
### Command name: `about`
4+
**Description**: Learn about this bot
5+
6+
* Arguments:
7+
None
8+
---
39
### Command name: `auto-threading enable`
410
**Description**: Automatically create a thread for each message sent in this channel.
511

@@ -37,6 +43,28 @@ None
3743
* **Arguments**:
3844
* `channel` - The channel to view the auto-threading settings for. - Channel
3945

46+
---
47+
### Command name: `auto-threading add-roles`
48+
**Description**: Add extra to threads in auto-threaded channels
49+
50+
**Additional Information**: This command will add roles to be pinged alongside the default ping role for this auto-threaded channel
51+
52+
**Required Member Permissions**: Manage Channels
53+
54+
* **Arguments**:
55+
* `role` - A role to invite to threads in this channel - Optional Role
56+
57+
---
58+
### Command name: `auto-threading remove-roles`
59+
**Description**: Remove extra from threads in auto-threaded channels
60+
61+
**Additional Information**: This command will remove roles that have been added to be pinged alongside the default ping role for this auto-threaded channel
62+
63+
**Required Member Permissions**: Manage Channels
64+
65+
* **Arguments**:
66+
* `role` - A role to invite to threads in this channel - Optional Role
67+
4068
---
4169
### Command name: `clear count`
4270
**Description**: Clear a specific count of messages
@@ -80,21 +108,6 @@ None
80108
* `before` - The ID of the message to clear before - Snowflake
81109
* `author` - The author of the messages to clear - Optional User
82110

83-
---
84-
### Command name: `config moderation`
85-
**Description**: Configure Lily's moderation system
86-
87-
**Required Member Permissions**: Manage Server
88-
89-
* **Arguments**:
90-
* `enable-moderation` - Whether to enable the moderation system - Boolean
91-
* `moderator-role` - The role of your moderators, used for pinging in message logs. - Optional Role
92-
* `action-log` - The channel used to store moderator actions. - Optional Channel
93-
* `quick-timeout-length` - The length of timeouts to use for quick timeouts - Coalescing Optional Duration
94-
* `warn-auto-punishments` - Whether to automatically punish users for reach a certain threshold on warns - Optional Boolean
95-
* `log-publicly` - Whether to log moderation publicly or not. - Optional Boolean
96-
* `ban-dm-message` - A custom message to send to users when they are banned. - Optional String
97-
98111
---
99112
### Command name: `config logging`
100113
**Description**: Configure Lily's logging system
@@ -110,6 +123,22 @@ None
110123
* `member-log` - The channel for logging members joining and leaving the guild - Optional Channel
111124
* `public-member-log` - The channel for the public logging of members joining and leaving the guild - Optional Channel
112125

126+
---
127+
### Command name: `config moderation`
128+
**Description**: Configure Lily's moderation system
129+
130+
**Required Member Permissions**: Manage Server
131+
132+
* **Arguments**:
133+
* `enable-moderation` - Whether to enable the moderation system - Boolean
134+
* `moderator-role` - The role of your moderators, used for pinging in message logs. - Optional Role
135+
* `action-log` - The channel used to store moderator actions. - Optional Channel
136+
* `quick-timeout-length` - The length of timeouts to use for quick timeouts - Coalescing Optional Duration
137+
* `warn-auto-punishments` - Whether to automatically punish users for reach a certain threshold on warns - Optional Boolean
138+
* `log-publicly` - Whether to log moderation publicly or not. - Optional Boolean
139+
* `ban-dm-message` - A custom message to send to users when they are banned. - Optional String
140+
* `auto-invite-moderator-role` - Silently ping moderators to invite them to new threads. - Optional Boolean
141+
113142
---
114143
### Command name: `config utility`
115144
**Description**: Configure Lily's utility settings
@@ -211,12 +240,6 @@ None
211240
### Command name: `help`
212241
**Description**: Get help with using Lily!
213242

214-
* Arguments:
215-
None
216-
---
217-
### Command name: `info`
218-
**Description**: Learn about Lily, and get uptime data!
219-
220243
* Arguments:
221244
None
222245
---
@@ -322,22 +345,32 @@ None
322345
* `user` - Person to ban - User
323346
* `delete-message-days` - The number of days worth of messages to delete - Int
324347
* `reason` - The reason for the ban - Defaulting String
348+
* `soft-ban` - Weather to soft-ban this user (unban them once messages are deleted) - Defaulting Boolean
325349
* `dm` - Whether to send a direct message to the user about the ban - Defaulting Boolean
326350
* `image` - An image you'd like to provide as extra context for the action - Optional Attachment
327351

328352
---
329-
### Command name: `soft-ban`
330-
**Description**: Soft-bans a user.
353+
### Command name: `temp-ban add`
354+
**Description**: Temporarily bans a user
331355

332356
**Required Member Permissions**: Ban Members
333357

334-
* Arguments:
335-
* `user` - Person to Soft ban - User
336-
* `delete-message-days` - The number of days worth of messages to delete - Optional Int/Long
358+
* **Arguments**:
359+
* `user` - Person to ban - User
360+
* `delete-message-days` - The number of days worth of messages to delete - Int
361+
* `duration` - The duration of the temporary ban. - Coalescing Duration
337362
* `reason` - The reason for the ban - Defaulting String
338-
* `dm` - Whether to send a direct message to the user about the soft-ban - Defaulting Boolean
363+
* `dm` - Whether to send a direct message to the user about the ban - Defaulting Boolean
339364
* `image` - An image you'd like to provide as extra context for the action - Optional Attachment
340365

366+
---
367+
### Command name: `temp-ban view-all`
368+
**Description**: View all temporary bans for this guild
369+
370+
**Required Member Permissions**: Ban Members
371+
372+
* **Arguments**:
373+
None
341374
---
342375
### Command name: `unban`
343376
**Description**: Unbans a user.

gradle/libs.versions.toml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
11
[versions]
22
# Plugins
3-
kotlin = "1.9.22"
3+
kotlin = "2.0.10"
44
shadow = "8.1.1"
5-
detekt = "1.23.5"
5+
detekt = "1.23.7"
66
git-hooks = "0.0.2"
77
grgit = "5.2.2"
88
blossom = "2.1.0"
99

1010
# Libraries
11-
kord-extensions = "1.8.0-20240319.115836-21"
12-
logging = "6.0.3"
13-
logback = "1.5.0"
14-
github-api = "1.318"
15-
kmongo = "4.11.0"
16-
docgenerator = "0.1.5-SNAPSHOT"
11+
kord-extensions = "2.2.0-20240824.203242-3"
12+
logging = "7.0.0"
13+
logback = "1.5.8"
14+
github-api = "1.325"
15+
kmongo = "5.1.0"
16+
docgenerator = "0.2.2-SNAPSHOT"
1717

1818
[libraries]
19-
kord-extensions-core = { module = "com.kotlindiscord.kord.extensions:kord-extensions", version.ref = "kord-extensions" }
20-
kord-extensions-phishing = { module = "com.kotlindiscord.kord.extensions:extra-phishing", version.ref = "kord-extensions" }
21-
kord-extensions-pluralkit = { module = "com.kotlindiscord.kord.extensions:extra-pluralkit", version.ref = "kord-extensions"}
22-
kord-extensions-unsafe = { module = "com.kotlindiscord.kord.extensions:unsafe", version.ref = "kord-extensions"}
23-
kord-extensions-welcome = { module = "com.kotlindiscord.kord.extensions:extra-welcome", version.ref = "kord-extensions"}
19+
kord-extensions-core = { module = "dev.kordex:kord-extensions", version.ref = "kord-extensions" }
20+
kord-extensions-phishing = { module = "dev.kordex.modules:func-phishing", version.ref = "kord-extensions" }
21+
kord-extensions-pluralkit = { module = "dev.kordex.modules:pluralkit", version.ref = "kord-extensions"}
22+
kord-extensions-unsafe = { module = "dev.kordex.modules:dev-unsafe", version.ref = "kord-extensions"}
23+
kord-extensions-welcome = { module = "dev.kordex.modules:func-welcome", version.ref = "kord-extensions"}
24+
2425
kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib" }
2526
logback = { module = "ch.qos.logback:logback-classic", version.ref = "logback" }
2627
logging = { module = "io.github.oshai:kotlin-logging", version.ref = "logging" }

0 commit comments

Comments
 (0)