feat: add qq music api search
This commit is contained in:
9 files changed
+194
-4
No files matched your search
@@ -32,4 +32,5 @@ class ConfigManager : JsonFileHandler<Config>("config.json") {
|
||||
val enableAntiRevoke get() = this.read<Config>().enableAntiRevoke
|
||||
val llamaUrl get() = this.read<Config>().llamaUrl
|
||||
val llamaModel get() = this.read<Config>().llamaModel
|
||||
val qqMusicApiUrl get() = this.read<Config>().qqMusicApiUrl
|
||||
}
|
||||
@@ -40,3 +40,9 @@ fun Int.formatNumberEnglish(): String {
|
||||
else -> this.toString()
|
||||
}
|
||||
}
|
||||
|
||||
fun Int.formatToMinutes(): String {
|
||||
val minutes = this / 60
|
||||
val remainingSeconds = this % 60
|
||||
return "$minutes:${if (remainingSeconds < 10) "0" else ""}$remainingSeconds"
|
||||
}
|
||||
Reference in New Issue
Block a user