@tsudzuki
有没有一种可能我机器人和需要使用机器人的项目不在同一个地方
X
xbaimiao 发布的帖子
-
Mirai-Http-Api-JavaSDK
此项目基于mirai-http-api
请启用ws功能开源地址:https://github.com/xbaimiao/mirai-http-sdk
fun main() { val wsInfo = WsInfo("http://127.0.0.1:8099/", 2157207381, "INITKEYCgTu5Bcx") bot = WebSocketBot(wsInfo).connect() bot.join() bot.eventChancel.subscribe<GroupMessageEvent> { val msg = message.contentToString() var boolean1 = false for (baseComponent in this.message.toList()) { if (baseComponent is PlainText) { if (baseComponent.string == "禁言") { boolean1 = true } } } for (baseComponent in this.message.toList()) { if (baseComponent is At) { if (boolean1) { group.getMember(baseComponent.target).thenAccept { it!!.mute(600) } } } } if (msg == "回复我") { group.quoteMessage(Component.text("好"), "${this.messageSource.messageId}") } } }
-
RE: 无法登录的临时处理方案
我添加了 https://github.com/project-mirai/mirai-login-solver-selenium 里面的依赖 但是并不会出现滑动模块 而且她还报错
-
机器人登录不了,账号密码没错
net.mamoe.mirai.network.WrongPasswordException: Error(title=禁止登录, message=当前上网环境异常,请更换网络环境或在常用设备上登录或稍后再试。, errorInfo=), tips=若频繁出现, 请尝试开启设备锁