Giter Club home page Giter Club logo

botfive's Introduction

BotFive

一个基于Mirai-Java框架的群聊机器人,完善中~

目前已完成以下内容:

  • 对用户的命令进行对应回应:BotFive-1.0.2(恭喜笨比bot55进入智能时代1.x.x)
  • 按名字搜索音乐并以xml形式发送:MiraiSongPlugin-2.7-1.2.1
  • 生成一些拍拍图等:petpet-5.3
  • 群聊大富翁文字版:MonopolyForMirai-0.1.2.mirai2
  • 生成5000兆円欲しい!风格图片:5000choyen-1.0.0
  • 基于chatGPT的智能问答:mirai-openai-plugin-1.1.0.mirai2

具体使用方式:

  • 发送 #BotFive 获取主要功能帮助

其中用到的Jar包来源有:

  1. https://github.com/heziblack/MonopolyForMirai
  2. https://github.com/Dituon/petpet
  3. https://github.com/xszqxszq/5000choyen-mirai
  4. https://github.com/cssxsh/mirai-openai-plugin

参考网站:

  1. https://github.com/mamoe/mirai
  2. https://mirai.mamoe.net/

具体配置方法:

  1. 先将本仓库克隆到本地,打开后删除bots文件夹(里面存储原账号的信息)

  2. 然后进入/config/Console/autologin.yml,删除第二段 - # 账号, 现只支持 QQ 数字账号 以下的内容

  3. 返回根目录,打开mcl.cmd。等待全部加载完毕出现输入框后,输入

    login qq账号 qq密码
    
  4. 如果想要将该账号添加为自动登录,可以输入

    autologin add qq账号 qq密码
    
  5. 接下来会出现需要滑动验证的内容,我们以电脑端操作为例(虽然Mirai官方更推荐使用android手机端登陆验证),将最后一段的link后的网址复制到浏览器,f12打开看网页检查,监视网络,进行滑块验证后获取ticket。在mcl窗口提交ticket,即可登录。(当然也可以使用TxCaptchaHelper等工具进行辅助登录,可自行查询)。


更新方式:

该上传的版本可能未将mcl升级到最新的2.14.0版本(该版本增加了短信验证登录功能)。如果需要,可以参考以下步骤:

  • 打开根目录下的config.json,将原来对应的部分替换为

      "net.mamoe:mirai-console": {
          "channel": "maven-stable",
          "version": "2.13.3",
          "type": "libs",
          "versionLocked": false
        },
  • 打开cmd.exe,进入本仓库根目录在本地的位置,输入

    mcl -u
    
  • 等待更新即可。这也是一种打开mcl的方式。


  • 2023/3/14更新,在过去的一周半内,目前该项目启动时在电脑上已经报出code=45/235/237三种错误,尝试过更新到mcl 2.14.0、删除device.json、删除bots根目录、保持手机登录等多种方法,在未知有新错误的情况下,应该是作者的四个qq号都被风控了qwq

  • 因此本项目暂时不再更新,后续更新时间未知。


  • 2023/3/29更新,加入fix-protocol插件之后,在yml手动setConfig protocol MACOS,成功修复,本项目继续更新~

  • 2023/4/15更新,特此感谢 桃子 为我提供了OpenAI api-key,使得bot的chatGPT问答能够顺利进行。
  • 当前库内的api-key已经过期。

  • 2023/9/11更新,桃子的api-key也过期了,智能55bot暂时下线,直到找到下一个可用的api-key

botfive's People

Contributors

daonan233 avatar

Stargazers

 avatar Chen Liang avatar WenLiang avatar zinan2inc avatar  avatar  avatar  avatar  avatar

Watchers

 avatar zinan2inc avatar

botfive's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.