思知机器人插件
-
地址 https://github.com/thetbw/my-bot
实例:
说明:
- 自动好友,群请求,同时向admin发送请求信息
- 不支持图片
- 群内需要@ta ,才会回你
关于思知机器人
https://www.ownthink.com/ 目前免费,还行吧
-
可以,下载试试看
-
404.......
-
@xsluck 额,忘了我仓库没有公开,我改一下
-
插件闪退是怎么回事2.8.0RC版本
-
可以,还不错
-
@zxt2333 应该是配置文件命题,配置文件是yaml格式,确认一下,还有编码utf-8
-
@thetbw 还是不行
-
此回复已被删除! -
2021-11-06 19:08:53 E/thetbw-bot: Exception in coroutine Plugin thetbw-bot of thetbw-bot
io.ktor.client.call.NoTransformationFoundException: No transformation found: class io.ktor.utils.io.ByteBufferChannel -> class xyz.thetbw.bot.OwnThinkBot$BotResp
with response from https://api.ownthink.com/bot:
status: 200 OK
response headers:
access-control-allow-origin: *
, connection: keep-alive
, content-type: text/html; charset=UTF-8
, date: Sat, 06 Nov 2021 11:08:52 GMT
, server: nginx
, strict-transport-security: max-age=31536000; includeSubDomains
, transfer-encoding: chunkedat io.ktor.client.call.HttpClientCall.receive(HttpClientCall.kt:92) at xyz.thetbw.bot.OwnThinkBot.sendMessage(OwnThinkBot.kt:99) at xyz.thetbw.bot.OwnThinkBot$sendMessage$1.invokeSuspend(OwnThinkBot.kt) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:191) at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:147) at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:15) at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:93) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:191) at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:147) at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:15) at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:93) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:191) at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:147) at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:15) at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:93) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:191) at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:147) at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:15) at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:93) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:191) at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:147) at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:15) at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:93) 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)
-
请问这是什么回事,在群聊内@机器人时会出现这种情况,但私聊不会
-
@9mb-project 经常有还是偶尔有呢,应该是请求机器人时序列化的问题
-
QQ群@机器人查询天气的时候有问题,会返回一个错误的天气信息,应该是群内查询的时候机器人识别成了@XXX城市天气,api内找不到这个城市就乱返回了一个城市天气信息
-
-
![@{N)2VWGN]YJ{`_PTJ}~BLM.png](/assets/uploads/files/1649779348216-n-2vwgn-yj-96-_ptj-blm.png) 读取yml报错了是为啥
-
这样报错是怎么回事
2022-07-27 15:29:04 E/thetbw-bot: Exception in coroutine Plugin xyz.thetbw.bot of thetbw-bot
java.lang.NoClassDefFoundError: Could not initialize class xyz.thetbw.bot.HttpClientKt
at thetbw-bot-0.1.0.mirai.jar//xyz.thetbw.bot.OwnThinkBot.sendMessage(OwnThinkBot.kt:33)
at thetbw-bot-0.1.0.mirai.jar//xyz.thetbw.bot.PluginMain$onEnable$2.invokeSuspend(PluginMain.kt:72)
at thetbw-bot-0.1.0.mirai.jar//xyz.thetbw.bot.PluginMain$onEnable$2.invoke(PluginMain.kt)
at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invokeSuspend(EventChannel.kt:511)
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.SafeListener$onEvent$2.invokeSuspend(SafeListener.kt:58)
at net.mamoe.mirai.internal.event.SafeListener$onEvent$2.invoke(SafeListener.kt)
at net.mamoe.mirai.internal.event.SafeListener$onEvent$2.invoke(SafeListener.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:166)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
at net.mamoe.mirai.internal.event.SafeListener.onEvent(SafeListener.kt:58)
at net.mamoe.mirai.internal.event.EventListeners.process(EventListeners.kt:125)
at net.mamoe.mirai.internal.event.EventListeners.callListeners$mirai_core(EventListeners.kt:73)
at net.mamoe.mirai.internal.event.EventListeners$callListeners$1.invokeSuspend(EventListeners.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.UndispatchedCoroutine.afterResume(CoroutineContext.kt:202)
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: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) -
设置好机器人和yaml文件了,但是不能正常的运行,请问这是怎么回事? -
思知能接收到消息,但并不回复,想问一下接口地址需要改吗