希望所有的词条都能被当作1对多来处理
xx 臭 114514
建立词条词条“臭”,然后往词条“臭”里写“114514”,之后再
xx 臭 1910810
往词条"臭"里新添了一条"1910810"。
这样就不用记两种类型词条的添加方法了,再也不会收到“我已经学废了空格!不能再学了!”
SnowMoonSS 发布的帖子
-
RE: [壶言3]壶言会话3-一款高度自定义的自定义回复插件
-
RE: [壶言3]壶言会话3-一款高度自定义的自定义回复插件
@Moyuyanli 不用特意兼容吧,目前的壶言2在overflow里运行正常。本来overflow就不支持cq码,将来也不打算支持,我把overflow接到cq码的LLOnebotQQ上居然能工作就挺神奇的。我把那个仅支持cq码的服务放到overflow里了,以另一种方式实现了消息段服务和CQ码服务的分离(
-
RE: [壶言3]壶言会话3-一款高度自定义的自定义回复插件
@shihuang214 在 [壶言3]壶言会话3-一款高度自定义的自定义回复插件 中说:
@SnowMoonSS 应该是overflow不兼容cq码吧,使用cq码就不行了,作者大佬可能在做3了,希望3里面考虑进去吧
确实,但是用消息段又会导致另一个服务不兼容,很难受。llonebot的消息类型,token都是全局的,没办法给每个服务单独设置。
-
RE: 想收集一下现在大家对于mirai的使用情况
还在使用mirai吗:是
通过那种登录方式使用的mirai:Overflow
mirai登录情况稳定吗:稳定
mirai的相关功能使用方式:mirai插件
使用mirai的相关平台:linux -
RE: 使用go-cqhttp登录QQ后怎么接入mirai插件?(纯小白)
按我的理解是不能的……
或许你应该使用mirai,然后在mirai装onebot协议插件,例如 https://github.com/cnlimiter/onebot-mirai 或者https://github.com/yyuueexxiinngg/onebot-kotlin
这样就能同时兼容mirai和nonebot插件 -
RE: 没有找到对应 8.9.58 的服务配置
先启动mirai,不必登录成功
然后更新登录协议
然后关掉mirai
然后KFCFactory.json里配置对应的协议
然后在此启动mirai进行登录,应该就行了(如果你的qsign没问题的话 -
RE: B站订阅插件,动态、视频、直播订阅 @全体成员
使用mcl更新失败
mcl是全新安装的,全都是默认设置,使用这个命令添加的插件./mcl --update-package xyz.cssxsh:bilibili-helper --channel maven-stable --type plugin
readme.md中的maven-stable拼错了(小声
查看config.json之后,mirai-console, mirai-console-terminal, mirai-core-all, mcl-addon都在maven-stable频道,都能正常更新
将bilibili-helper的频道改为stable之后能正常更新,但无法更新到最新的1.6.7版本,只能更新到1.6.6版本(同样weibo-helper也有这个问题snowmoonss@Docker:~/mirai$ ./mcl -uz 11:29:32 [INFO] iTX Technologies Mirai Console Loader version 2.1.2-61c8bd8 11:29:32 [INFO] Runtime: OpenJDK 64-Bit Server VM 11.0.16 (arch: 64) 11:29:32 [INFO] https://github.com/iTXTech/mirai-console-loader 11:29:32 [INFO] This program is licensed under GNU AGPL v3 11:29:32 [INFO] Mirai Console Loader Announcement: Mirai Console Loader 公告栏 如果在图片上传的时候遇到问题请与我们联系 (需要提供图片文件源本) `- 如 Unsupported image type for ExternalResource * ` considering use gif/png/bmp/jpg format. `- Tracker: https://github.com/mamoe/mirai/issues/new/choose 常用资源整合 `- https://mirai.mamoe.net/topic/653 MCL 已推出 2.1.0,更好的支持 Mirai 2.11 的插件系统,建议更新。 11:29:32 [INFO] Verifying "net.mamoe:mirai-console" v2.13.0 11:29:33 [INFO] Verifying "net.mamoe:mirai-console-terminal" v2.13.0 11:29:33 [INFO] Verifying "net.mamoe:mirai-core-all" v2.13.0 11:29:33 [INFO] Verifying "org.itxtech:mcl-addon" v2.1.1 11:29:33 [INFO] Verifying "xyz.cssxsh:bilibili-helper" [Fatal Error] :5:3: 元素类型 "meta" 必须由匹配的结束标记 "</meta>" 终止。 11:29:34 [ERROR] org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 3; 元素类型 "meta" 必须由匹配的结束标记 "</meta>" 终止。 at java.xml/com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:261) at java.xml/com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339) at org.itxtech.mcl.component.Repository.fetchMavenMetadata(Repository.java:94) at org.itxtech.mcl.component.Repository.getLatestVersionFromMaven(Repository.java:103) at org.itxtech.mcl.module.builtin.Updater.check(Updater.java:99) at org.itxtech.mcl.module.builtin.Updater.load(Updater.java:60) at org.itxtech.mcl.module.ModuleManager.phaseLoad(ModuleManager.java:117) at org.itxtech.mcl.Loader.lambda$start$3(Loader.java:190) at org.itxtech.mcl.Loader.tryCatching(Loader.java:151) at org.itxtech.mcl.Loader.start(Loader.java:190) at org.itxtech.mcl.Loader.main(Loader.java:84) 11:29:34 [ERROR] Failed to verify package "xyz.cssxsh:bilibili-helper" 11:29:34 [ERROR] java.lang.Exception: Cannot find valid maven metadata at org.itxtech.mcl.component.Repository.fetchMavenMetadata(Repository.java:99) at org.itxtech.mcl.component.Repository.getLatestVersionFromMaven(Repository.java:103) at org.itxtech.mcl.module.builtin.Updater.check(Updater.java:99) at org.itxtech.mcl.module.builtin.Updater.load(Updater.java:60) at org.itxtech.mcl.module.ModuleManager.phaseLoad(ModuleManager.java:117) at org.itxtech.mcl.Loader.lambda$start$3(Loader.java:190) at org.itxtech.mcl.Loader.tryCatching(Loader.java:151) at org.itxtech.mcl.Loader.start(Loader.java:190) at org.itxtech.mcl.Loader.main(Loader.java:84)
-
RE: 升级 mirai 至 2.14.0, 使用新的短信验证方法解决设备验证
发一下我的经历
按照一楼修改之后改了安卓PAD,但无效
之后在win里面如此又操作了一遍,居然成了
然后把正常登录的device.json复制到原来的linux环境里,正常登录
爽了改完之后还是没有效果的可以试试换个环境。感觉还是比较玄学,行了就是撞大运,不行就是心不诚(不是
-
RE: Hibernate 前置插件,ORM 数据库框架,群/好友消息记录
版本:2.2.3
配置文件:hibernate.connection.url=jdbc:mysql://localhost:3306/hibernate?autoReconnect=true hibernate.connection.driver_class=com.mysql.cj.jdbc.Driver hibernate.connection.CharSet=utf8mb4 hibernate.connection.useUnicode=true hibernate.connection.username=hibernate hibernate.connection.password=hibernate hibernate.dialect=org.hibernate.dialect.MySQL5Dialect hibernate.connection.provider_class=org.hibernate.hikaricp.internal.HikariCPConnectionProvider hibernate.hbm2ddl.auto=none hibernate-connection-autocommit=true hibernate.connection.show_sql=false hibernate.autoReconnect=true
错误日志:
2022-05-29 13:27:31 V/Bot.1234567890: [五字群名(123456798)] 昵称(123456789) -> [mirai:image:{8A9EA3CD-6F62-8D71-464A-B1311DCC7F98}.jpg] 2022-05-29 13:27:31 W/stderr: ERROR SqlExceptionHelper Table 'hibernate.message_record' doesn't exist 2022-05-29 13:27:31 W/stderr: ERROR SqlExceptionHelper Table 'hibernate.face_record' doesn't exist 2022-05-29 13:27:31 W/mirai-hibernate-plugin: SQLException in Recorder java.sql.SQLSyntaxErrorException: Table 'hibernate.message_record' doesn't exist at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:120) at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122) at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:916) at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1061) at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1009) at com.mysql.cj.jdbc.ClientPreparedStatement.executeLargeUpdate(ClientPreparedStatement.java:1320) at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdate(ClientPreparedStatement.java:994) at com.zaxxer.hikari.pool.ProxyPreparedStatement.executeUpdate(ProxyPreparedStatement.java:61) at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeUpdate(HikariProxyPreparedStatement.java) at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:197) at org.hibernate.dialect.identity.GetGeneratedKeysDelegate.executeAndExtract(GetGeneratedKeysDelegate.java:58) at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:43) at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3279) at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3885) at org.hibernate.action.internal.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:84) at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:645) at org.hibernate.engine.spi.ActionQueue.addResolvedEntityInsertAction(ActionQueue.java:282) at org.hibernate.engine.spi.ActionQueue.addInsertAction(ActionQueue.java:263) at org.hibernate.engine.spi.ActionQueue.addAction(ActionQueue.java:317) at org.hibernate.event.internal.AbstractSaveEventListener.addInsertAction(AbstractSaveEventListener.java:330) at org.hibernate.event.internal.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:287) at org.hibernate.event.internal.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:193) at org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:123) at org.hibernate.event.internal.DefaultMergeEventListener.saveTransientEntity(DefaultMergeEventListener.java:271) at org.hibernate.event.internal.DefaultMergeEventListener.entityIsTransient(DefaultMergeEventListener.java:243) at org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:175) at org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:70) at org.hibernate.event.service.internal.EventListenerGroupImpl.fireEventOnEachListener(EventListenerGroupImpl.java:107) at org.hibernate.internal.SessionImpl.fireMerge(SessionImpl.java:829) at org.hibernate.internal.SessionImpl.merge(SessionImpl.java:816) at mirai-hibernate-plugin-2.2.3.jar//xyz.cssxsh.mirai.hibernate.MiraiHibernateRecorder$merge$1.invoke(MiraiHibernateRecorder.kt:29) at mirai-hibernate-plugin-2.2.3.jar//xyz.cssxsh.mirai.hibernate.MiraiHibernateRecorder$merge$1.invoke(MiraiHibernateRecorder.kt:29) at mirai-hibernate-plugin-2.2.3.jar//xyz.cssxsh.mirai.hibernate.MiraiHibernateUtilsKt.useSession(MiraiHibernateUtils.kt:28) at mirai-hibernate-plugin-2.2.3.jar//xyz.cssxsh.mirai.hibernate.MiraiHibernateRecorder.merge(MiraiHibernateRecorder.kt:29) at mirai-hibernate-plugin-2.2.3.jar//xyz.cssxsh.mirai.hibernate.MiraiHibernateRecorder.access$merge(MiraiHibernateRecorder.kt:27) at mirai-hibernate-plugin-2.2.3.jar//xyz.cssxsh.mirai.hibernate.MiraiHibernateRecorder$record$1.invokeSuspend(MiraiHibernateRecorder.kt:35) 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:570) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:749) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664) 2022-05-29 13:27:31 W/mirai-hibernate-plugin: SQLException in Recorder java.sql.SQLSyntaxErrorException: Table 'hibernate.face_record' doesn't exist at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:120) at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122) at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:916) at com.mysql.cj.jdbc.ClientPreparedStatement.executeQuery(ClientPreparedStatement.java:972) at com.zaxxer.hikari.pool.ProxyPreparedStatement.executeQuery(ProxyPreparedStatement.java:52) at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeQuery(HikariProxyPreparedStatement.java) at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.extract(ResultSetReturnImpl.java:57) at org.hibernate.loader.Loader.getResultSet(Loader.java:2322) at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:2075) at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:2037) at org.hibernate.loader.Loader.doQuery(Loader.java:956) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:357) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:327) at org.hibernate.loader.Loader.loadEntity(Loader.java:2440) at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:77) at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:61) at org.hibernate.persister.entity.AbstractEntityPersister.doLoad(AbstractEntityPersister.java:4521) at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:4511) at org.hibernate.event.internal.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:571) at org.hibernate.event.internal.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:539) at org.hibernate.event.internal.DefaultLoadEventListener.load(DefaultLoadEventListener.java:208) at org.hibernate.event.internal.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:327) at org.hibernate.event.internal.DefaultLoadEventListener.doOnLoad(DefaultLoadEventListener.java:108) at org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:74) at org.hibernate.event.service.internal.EventListenerGroupImpl.fireEventOnEachListener(EventListenerGroupImpl.java:118) at org.hibernate.internal.SessionImpl.fireLoadNoChecks(SessionImpl.java:1231) at org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:1220) at org.hibernate.internal.SessionImpl.access$2100(SessionImpl.java:202) at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.doLoad(SessionImpl.java:2835) at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.lambda$load$1(SessionImpl.java:2812) at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.perform(SessionImpl.java:2768) at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.load(SessionImpl.java:2812) at org.hibernate.internal.SessionImpl.get(SessionImpl.java:1024) at org.hibernate.event.internal.DefaultMergeEventListener.entityIsDetached(DefaultMergeEventListener.java:306) at org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:172) at org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:70) at org.hibernate.event.service.internal.EventListenerGroupImpl.fireEventOnEachListener(EventListenerGroupImpl.java:107) at org.hibernate.internal.SessionImpl.fireMerge(SessionImpl.java:829) at org.hibernate.internal.SessionImpl.merge(SessionImpl.java:816) at mirai-hibernate-plugin-2.2.3.jar//xyz.cssxsh.mirai.hibernate.MiraiHibernateRecorder$merge$1.invoke(MiraiHibernateRecorder.kt:29) at mirai-hibernate-plugin-2.2.3.jar//xyz.cssxsh.mirai.hibernate.MiraiHibernateRecorder$merge$1.invoke(MiraiHibernateRecorder.kt:29) at mirai-hibernate-plugin-2.2.3.jar//xyz.cssxsh.mirai.hibernate.MiraiHibernateUtilsKt.useSession(MiraiHibernateUtils.kt:28) at mirai-hibernate-plugin-2.2.3.jar//xyz.cssxsh.mirai.hibernate.MiraiHibernateRecorder.merge(MiraiHibernateRecorder.kt:29) at mirai-hibernate-plugin-2.2.3.jar//xyz.cssxsh.mirai.hibernate.MiraiHibernateRecorder.access$merge(MiraiHibernateRecorder.kt:27) at mirai-hibernate-plugin-2.2.3.jar//xyz.cssxsh.mirai.hibernate.MiraiHibernateRecorder$record$2.invokeSuspend(MiraiHibernateRecorder.kt:40) 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:570) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:749) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
从报错来看是数据库中没有这两个表,手动试了下,是能够正常创建表的……
以前一直用的sqlite,升级到最新版之后每次启动都提示sqlite不支持多线程什么的,就想着干脆换成mysql