chore: format code
This commit is contained in:
4 files changed
+7
-6
No files matched your search
@@ -56,9 +56,11 @@ class PixivCommand : BaseCommand() {
|
||||
} catch (_: Exception) {
|
||||
}
|
||||
}
|
||||
node.addMessageChain(MessageChain.Builder()
|
||||
.addText("图片来源: Pixiv")
|
||||
.build(), configManager.selfId)
|
||||
node.addMessageChain(
|
||||
MessageChain.Builder()
|
||||
.addText("图片来源: Pixiv")
|
||||
.build(), configManager.selfId
|
||||
)
|
||||
message.reply(node.build())
|
||||
return
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ class GenerateQRCodeCommand : BaseCommand() {
|
||||
private fun generateQRCode(content: String): String {
|
||||
val qrCodeWriter = QRCodeWriter()
|
||||
val hints = mapOf(EncodeHintType.CHARACTER_SET to "UTF-8")
|
||||
val bitMatrix = qrCodeWriter.encode(content, BarcodeFormat.QR_CODE, 300, 300 , hints)
|
||||
val bitMatrix = qrCodeWriter.encode(content, BarcodeFormat.QR_CODE, 300, 300, hints)
|
||||
return MatrixToImageWriter.toBufferedImage(bitMatrix).toByteArray().encodeToBase64()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user