Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
萌新。 主动向好友发送消息需要bot.getFriend(),而bot需要用BotFactory.INSTANCE.newBot()创建。当我使用mcl登录时,mcl接管了我的登录过程,我该怎么获取bot来主动发送消息呢?
在插件里,每个事件都有this.bot(应该), 用这个取bot实例然后getFriend
参考Bot类
Bot.getInstance(qq: Long)
GlobalEventChannel.subscribeAlways<BotOnlineEvent> { event -> val groups = event.bot.groups }