Skip to content

Commit

Permalink
Update Lolicon.kt
Browse files Browse the repository at this point in the history
cikiPAD authored Dec 25, 2023
1 parent c8d6066 commit 60a999f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/kotlin/command/Lolicon.kt
Original file line number Diff line number Diff line change
@@ -685,15 +685,15 @@ object Lolicon : CompositeCommand(
val msg: ImageUpdatedEntity? = image as? ImageUpdatedEntity
if (msg != null) {

if (msg.getUrls != null) {
if (msg.getUrls() != null) {
imageMsgBuilder.add(contact.bot, PlainText(msg.getUrls().getDisplayString()+""))
}

for (imageOne in msg.getImages()?.filterNotNull()?: emptyList()) {

val imageSelf:Image = imageOne as? Image
val imageSelf: Image = imageOne as? Image
if (imageSelf!= null) {
imageMsgBuilder.add(contact.bot, msg)
imageMsgBuilder.add(contact.bot, imageSelf)
}
else {
imageMsgBuilder.add(contact.bot, PlainText("类型转换失败,非图片类型"))

0 comments on commit 60a999f

Please sign in to comment.