MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    BingDaily - 基于 mirai-api-http 的获取每日 Bing 图片的简单 Python 脚本

    其他项目发布
    3
    3
    377
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z
      zhanghua000 last edited by

      依赖:

      miraicle
      requests
      

      使用方法:
      正确配置 mirai-api-http(2.0+) 之后启动 mirai-console,运行此脚本,当脚本输出出现 sessionKey 后说明加载完成
      聊天(群聊,私聊均可)发送 /test_bingdaily 测试运行情况,发送 /bingdaily help 查看具体使用方法
      配置文件解释:
      因为配置文件使用的是 json 文档,不支持注释,特此加入对配置文件的注释
      配置文件:config.json
      adapter:连接方式,例如 http 或者 ws 之类的,取决于 mirai-api-http 的设置
      qq:目标机器人的 QQ 号
      port:连接端口(miraicle 限制,只能连接本机 localhost 的端口)
      verify_key:连接密钥,取决于 mirai-api-http 的设置
      文件:
      https://gist.github.com/zhanghua000/4dc69bdb82ad0c17275ae79266e74fea

      1 Reply Last reply Reply Quote 0
      • Referenced by  Z zhanghua000 
      • fffzzl
        fffzzl last edited by

        可以 赞一下

        1 Reply Last reply Reply Quote 0
        • S
          shadow_PuTong last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact