MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接
    1. Home
    2. imldy
    I
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 11
    • Best 1
    • Controversial 0
    • Groups 0

    imldy

    @imldy

    1
    Reputation
    5
    Profile views
    11
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    imldy Unfollow Follow

    Best posts made by imldy

    • QQ群文件转发器(群 to 群)

      基于mirai-console,支持文件名匹配正则表达式,满足表达式才转发;指定上传到目录。

      https://github.com/imldy/QQFileForward/

      还不太熟悉mirai,欢迎批评指正~

      posted in 插件发布
      I
      imldy

    Latest posts made by imldy

    • RE: 关于图形端登陆问题

      QQ号和密码啊

      posted in 使用交流
      I
      imldy
    • QQ群文件转发器(群 to 群)

      基于mirai-console,支持文件名匹配正则表达式,满足表达式才转发;指定上传到目录。

      https://github.com/imldy/QQFileForward/

      还不太熟悉mirai,欢迎批评指正~

      posted in 插件发布
      I
      imldy
    • RE: [已解决]写了个json的配置文件测试时发生报错

      你好,怎么解决的?

      posted in 开发交流
      I
      imldy
    • RE: 常见问题 Q & A

      @mrxiaom 谢谢,有道理

      posted in 官方公告
      I
      imldy
    • RE: 常见问题 Q & A

      请问挂一个星期,是指用mirai挂,还是用正常客户端挂?

      posted in 官方公告
      I
      imldy
    • RE: 【已解决:使用close()】开发依赖core的程序,请问bot登陆后如何退出(结束线程)

      @wssy001 感谢,这个应该是我需要的😄

      posted in 开发交流
      I
      imldy
    • 【已解决:使用close()】开发依赖core的程序,请问bot登陆后如何退出(结束线程)

      需求是使用Quartz定时登录并通过程序发送消息,但是目前使用普通Main方法进行测试登录、发送消息之后似乎不会自动结束程序(或线程?),请问如何结束呢?
      在文档里面没找到。

      posted in 开发交流
      I
      imldy
    • RE: 有关Bot.getInstance()的提问

      @nambers 感谢,已测试,可行。

      代码如下:

      @Override
      public void onEnable() {
          getLogger().info("Plugin loaded!");
          GlobalEventChannel.INSTANCE.subscribeAlways(BotOnlineEvent.class, event -> {
              Bot bot = Bot.getInstance(qqLong);
              EventChannel<BotEvent> eventChannel = bot.getEventChannel();
              eventChannel.registerListenerHost(new Handler());
          });
      }
      
      posted in 开发交流
      I
      imldy
    • RE: 有关Bot.getInstance()的提问

      开发console的插件,同样遇到了这个问题,已配置自动登录,但根据QQ号获取不到实例。
      推测是插件执行顺序的原因,查看启动日志,发现是先加载插件,后登录QQ,可能这就是原因。
      使用Thread.sleep()测试,发现onEnable()不结束,就不会登录QQ。

      posted in 开发交流
      I
      imldy
    • RE: 面向新人的 mirai 开发/使用文档

      @orisland 谢谢,我试试

      更新,已成功。
      这里填的是SimpleListenerHost的子类的实例,子类写一些方法并使用@EventHandler注解,参数填不同的Event,例如FriendMessageEvent等。

      posted in 开发交流
      I
      imldy