docs: update docs

This commit is contained in:
2024-10-02 20:05:52 +08:00
parent 4ac5d6603b
commit 767bd7c0f3
2 files changed
+3 -3

No files matched your search

@@ -31,10 +31,10 @@ class CompilerCommand : BaseCommand() {
message.reply("使用`/exec` <语言> <代码> 即可执行~")
return
}
var language = args.first()
var language = args.first().lowercase()
val code = args.drop(1).joinToString(" ")
val response = when (language) {
"kotlin", "Kotlin", "kt", "Kt", "KT" -> {
"kotlin", "kt" -> {
Http.post<KCSResponse>(
kotlinCompilerServer,
jsonBody = KCSPayload(listOf(KCSPayload.File(code))).toJson()