Skip to content

Commit

Permalink
refactor: 一些文档、注释调整
Browse files Browse the repository at this point in the history
  • Loading branch information
ForteScarlet committed Mar 3, 2024
1 parent efa00e2 commit 945a3a5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ jobs:
token: ${{ secrets.PUSH_TOKEN }}
body_path: .changelog/${{ github.ref_name }}.md
generate_release_notes: true
prerelease: ${{ contains(github.ref_name, 'preview') || contains(github.ref_name, 'beta') || contains(github.ref_name, 'alpha') }}
prerelease: ${{ contains(github.ref_name, 'preview') || contains(github.ref_name, 'alpha') }}

# || contains(github.ref_name, 'beta')

publish-snapshot:
name: Publish snapshot
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/P.kt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ object P {
override val homepage: String get() = HOMEPAGE


private val baseVersion = v(4, 0, 0) - v("dev8")
private val baseVersion = v(4, 0, 0) - v("beta1")

val snapshotVersion = baseVersion - Version.SNAPSHOT
override val version = if (isSnapshot()) snapshotVersion else baseVersion
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ openjdk-jmh = "1.37"
log4j = "2.20.0"
reactor = "3.6.2"
# simbot
simbot = "4.0.0-dev18"
simbot = "4.0.0-beta1"
suspendTransform = "0.7.0-beta1"
gradleCommon = "0.2.0"
# ksp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package love.forte.simbot.component.qguild.internal.bot

import kotlinx.coroutines.Job
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.cancel
import love.forte.simbot.bot.ConflictBotException
import love.forte.simbot.bot.JobBasedBotManager
import love.forte.simbot.bot.NoSuchBotException
Expand Down Expand Up @@ -72,11 +71,7 @@ internal class QQGuildBotManagerImpl(

init {
job.invokeOnCompletion {
// TODO to clear
bots.removeIf {
it.cancel("BotManager was on completion")
true
}
bots.clear()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,20 @@

package love.forte.simbot.component.qguild.message

import love.forte.simbot.message.Image
import love.forte.simbot.message.OfflineImage


/**
* 用于发送的图片类型
* @see Image
* @suppress TODO
*/
public class QGOfflineImage // TODO

/**
* 收到的图片类型
*
* @see OfflineImage
* @suppress TODO
*/
public class QGImage // TODO

0 comments on commit 945a3a5

Please sign in to comment.