MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接
    1. Home
    2. MR-MonkeyRay
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 7
    • Best 0
    • Controversial 0
    • Groups 0

    MR-MonkeyRay

    @MR-MonkeyRay

    0
    Reputation
    4
    Profile views
    7
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    MR-MonkeyRay Unfollow Follow

    Latest posts made by MR-MonkeyRay

    • RE: DrawMeme - 基于Skiko的奇怪的图片生成器

      @YoinSama +1
      这样就变成了一个快速表情包生成器了,方便了许多

      posted in 插件发布
      MR-MonkeyRay
      MR-MonkeyRay
    • RE: 小白求助:Mirai怎么实现发送URL下的图片?

      @greenhandzdl 可以试试读到inputStream之后那个上传图片,并获取上传好图片的id,然后发送(我直接粘我自己的代码吧...):

      // draw pic
      val img = DrawUtil.drawImg(candidates)
      val os = ByteArrayOutputStream()
      ImageIO.write(img, "png", os)
      
      // read pic
      val stream: InputStream = ByteArrayInputStream(os.toByteArray())
      stream.close()
      os.close()
      
      // send pic
      sendMessage(Image.fromId(stream.uploadAsImage(subject).imageId))
      
      posted in 开发交流
      MR-MonkeyRay
      MR-MonkeyRay
    • RE: 请问一下,有没有好用的QQ群打卡插件啊

      https://mirai.mamoe.net/topic/1031/每日打卡-一款支持更多打卡类型的打卡应用

      posted in 使用交流
      MR-MonkeyRay
      MR-MonkeyRay
    • RE: 绿屏以后启动报错

      https://mirai.mamoe.net/topic/1084/mcl-无法使用的相关解决方法-2022-3-25

      posted in 使用交流
      MR-MonkeyRay
      MR-MonkeyRay
    • RE: HitHit锤人插件

      @tsudzuki 从release的jar包解包看了一下...确实..pat图片都没打进去...

      posted in 插件发布
      MR-MonkeyRay
      MR-MonkeyRay
    • RE: HitHit锤人插件

      摸人的好像不行?
      Mirai版本: 2.10.1
      HitHit版本: 2.0.0
      试了At人,精确匹配,模糊匹配,都报错:

      2022-04-07 21:13:38 E/HitHit: Exception in coroutine Plugin org.iris.plugin.HitHit of HitHit
      java.lang.IllegalArgumentException: input == null!
              at java.desktop/javax.imageio.ImageIO.read(ImageIO.java:1356)
              at org.iris.plugin.model.HitHitTool.mkImg(HitHitTool.kt:49)
              at org.iris.plugin.model.HitHitTool.getAction(HitHitTool.kt:37)
              at org.iris.plugin.HitHit$onEnable$3.invokeSuspend(HitHit.kt:108)
              at org.iris.plugin.HitHit$onEnable$3.invoke(HitHit.kt)
              at org.iris.plugin.HitHit$onEnable$3.invoke(HitHit.kt)
              at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invokeSuspend(EventChannel.kt:455)
              at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invoke(EventChannel.kt)
              at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invoke(EventChannel.kt)
              at net.mamoe.mirai.internal.event.Handler$onEvent$2.invokeSuspend(InternalEventListeners.kt:50)
              at net.mamoe.mirai.internal.event.Handler$onEvent$2.invoke(InternalEventListeners.kt)
              at net.mamoe.mirai.internal.event.Handler$onEvent$2.invoke(InternalEventListeners.kt)
              at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89)
              at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:165)
              at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
              at net.mamoe.mirai.internal.event.Handler.onEvent(InternalEventListeners.kt:50)
              at net.mamoe.mirai.internal.event.InternalEventListenersKt.process(InternalEventListeners.kt:166)
              at net.mamoe.mirai.internal.event.InternalEventListenersKt.callAndRemoveIfRequired(InternalEventListeners.kt:115)
              at net.mamoe.mirai.internal.event.InternalEventListenersKt$callAndRemoveIfRequired$1.invokeSuspend(InternalEventListeners.kt)
              at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
              at kotlinx.coroutines.UndispatchedCoroutine.afterResume(CoroutineContext.kt:147)
              at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
              at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
              at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
              at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
              at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
              at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
              at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
      
      posted in 插件发布
      MR-MonkeyRay
      MR-MonkeyRay
    • RE: HitHit锤人插件

      好玩好玩!

      posted in 插件发布
      MR-MonkeyRay
      MR-MonkeyRay