Giter VIP home page Giter VIP logo

5000choyen-mirai's Introduction

5000choyen-mirai

这是一个使用 Kotlin 实现的生成 5000choyen 风格文字的 mirai 插件。无需外挂 nodejs 服务器,开箱即用。

使用方法

默认调用方法如下:

生成5k 第一行文本
第二行文本

该命令所有别名如下:

  • 生成5k
  • /生成5k
  • gocho
  • /gocho
  • choyen
  • /choyen
  • /5k

本插件支持自定义命令别名,只需关闭 bot 后修改 config/xyz.xszq.fivethousand-choyen/config.yml 中的 commands 项即可。

更换字体

您可以修改 config/xyz.xszq.fivethousand-choyen/config.yml 中的 topFontbottomFont 来自定义字体,此项建议使用字体的英文名,否则可能无法识别到。

5000choyen-mirai's People

Stargazers

 avatar Qianxin Wang avatar マキ avatar 莯凛 avatar Bejukoro avatar Huaxidesu avatar 墨 avatar  avatar Lazycat avatar Aira avatar Ichinomiya Shirona avatar

Watchers

心水湛清 avatar

5000choyen-mirai's Issues

生成时出现报错

系统版本:Ubuntu 18.04.4 LTS
java版本:

openjdk version "11.0.14.1" 2022-02-08
OpenJDK Runtime Environment (build 11.0.14.1+1-Ubuntu-0ubuntu1.18.04)
OpenJDK 64-Bit Server VM (build 11.0.14.1+1-Ubuntu-0ubuntu1.18.04, mixed mode, sharing)

MCL版本:iTXTech Mirai Console Loader version 2.0.0-beta.2-c77173e
mirai版本:2.10.1
日志:

2022-04-16 11:06:21 E/main: Exception in coroutine <unnamed>
java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-11-openjdk-amd64/lib/libawt_xawt.so
        at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2630)
        at java.base/java.lang.Runtime.load0(Runtime.java:768)
        at java.base/java.lang.System.load(System.java:1837)
        at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
        at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2442)
        at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2498)
        at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694)
        at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2648)
        at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:830)
        at java.base/java.lang.System.loadLibrary(System.java:1873)
        at java.desktop/java.awt.image.ColorModel$1.run(ColorModel.java:209)
        at java.desktop/java.awt.image.ColorModel$1.run(ColorModel.java:207)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at java.desktop/java.awt.image.ColorModel.loadLibraries(ColorModel.java:206)
        at java.desktop/java.awt.image.ColorModel.<clinit>(ColorModel.java:219)
        at java.desktop/java.awt.image.BufferedImage.<clinit>(BufferedImage.java:286)
        at com.soywiz.korim.format.AwtNativeImageFormatProvider.create(NativeImageFormatProviderJvm.kt:42)
        at com.soywiz.korim.bitmap.NativeImageKt.NativeImage(NativeImage.kt:74)
        at com.soywiz.korim.bitmap.NativeImageKt.NativeImageOrBitmap32(NativeImage.kt:72)
        at com.soywiz.korim.bitmap.NativeImageKt.NativeImageOrBitmap32$default(NativeImage.kt:71)
        at xyz.xszq.FiveThousandChoyen.generate(FiveThousandChoyen.kt:29)
        at xyz.xszq.FiveThousandChoyenPlugin.handle(FiveThousandChoyenPlugin.kt:83)
        at xyz.xszq.FiveThousandChoyenPlugin.access$handle(FiveThousandChoyenPlugin.kt:38)
        at xyz.xszq.FiveThousandChoyenPlugin$onEnable$2$1$1$1.invokeSuspend(FiveThousandChoyenPlugin.kt:67)
        at xyz.xszq.FiveThousandChoyenPlugin$onEnable$2$1$1$1.invoke(FiveThousandChoyenPlugin.kt)
        at xyz.xszq.FiveThousandChoyenPlugin$onEnable$2$1$1$1.invoke(FiveThousandChoyenPlugin.kt)
        at xyz.xszq.FiveThousandChoyenPluginKt.requireNot(FiveThousandChoyenPlugin.kt:137)
        at xyz.xszq.FiveThousandChoyenPluginKt.access$requireNot(FiveThousandChoyenPlugin.kt:1)
        at xyz.xszq.FiveThousandChoyenPlugin$onEnable$2$1$1.invokeSuspend(FiveThousandChoyenPlugin.kt:66)
        at xyz.xszq.FiveThousandChoyenPlugin$onEnable$2$1$1.invoke(FiveThousandChoyenPlugin.kt)
        at xyz.xszq.FiveThousandChoyenPlugin$onEnable$2$1$1.invoke(FiveThousandChoyenPlugin.kt)
        at net.mamoe.mirai.internal.event.MessageSubscribersInternalKt$startsWithImpl$2.invokeSuspend(messageSubscribersInternal.kt:58)
        at net.mamoe.mirai.internal.event.MessageSubscribersInternalKt$startsWithImpl$2.invoke(messageSubscribersInternal.kt)
        at net.mamoe.mirai.internal.event.MessageSubscribersInternalKt$startsWithImpl$2.invoke(messageSubscribersInternal.kt)
        at net.mamoe.mirai.internal.event.MessageSubscribersInternalKt$content$1.invokeSuspend(messageSubscribersInternal.kt:27)
        at net.mamoe.mirai.internal.event.MessageSubscribersInternalKt$content$1.invoke(messageSubscribersInternal.kt)
        at net.mamoe.mirai.internal.event.MessageSubscribersInternalKt$content$1.invoke(messageSubscribersInternal.kt)
        at net.mamoe.mirai.event.SubscribeMessagesKt__SubscribeMessagesKt$subscribeMessages$$inlined$createBuilder$SubscribeMessagesKt__SubscribeMessagesKt$1$1.invokeSuspend(subscribeMessages.kt:253)
        at net.mamoe.mirai.event.SubscribeMessagesKt__SubscribeMessagesKt$subscribeMessages$$inlined$createBuilder$SubscribeMessagesKt__SubscribeMessagesKt$1$1.invoke(subscribeMessages.kt)
        at net.mamoe.mirai.event.SubscribeMessagesKt__SubscribeMessagesKt$subscribeMessages$$inlined$createBuilder$SubscribeMessagesKt__SubscribeMessagesKt$1$1.invoke(subscribeMessages.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.access$process(InternalEventListeners.kt:1)
        at net.mamoe.mirai.internal.event.InternalEventListenersKt$callAndRemoveIfRequired$2$1.invokeSuspend(InternalEventListeners.kt:132)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.