Skip to content

Toppahs-Cuber-QQBot : 基于mirai框架的qq机器人

License

Notifications You must be signed in to change notification settings

CodeMzt/Toppahs

Repository files navigation

Toppahs-Cuber-Bot

Github GitHub GitHub repo size GitHub release (latest SemVer) GitHub last commit

许可

本项目采用MIT开源

MIT License

Copyright (c) 2021 CodeMzt

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

说明

本项目基于mirai框架开发,运用双语言(Kotlin&C++)编写,采用MIT许可开源

本项目基本全开源,可能有少部分由于未整理完未开源,敬请期待

C++部分的编写基于MiraiCP

使用流程:

1 配置环境

mirai需要openjdk而不是甲骨文的jdk,如下载openjdk15/openjdk11

配置mcl,推荐使用纯控制台

2 服务部署

暂无使用服务

3 使用

1.克隆

克隆此仓库

· 直接克隆

· CIL

> gh repo clone CodeMzt/Toppahs

· GIT BUSH

$ git clone [email protected]:CodeMzt/Toppahs.git

如果仅是使用可以直接前往Releases下载jar包,并跳过第2、3步

2.配置

直接用IDEA打开本项目文件夹,配置好gradle

3.生成

1 在RunMirai.kt改好机器人的账号密码,运行RunMiraiKt启动项,可直接在IDE内启动mirai

2 你也可以直接运行buildPlugin启动项,生成jar文件

3.1仅推荐用于测试bot,若要长期挂起,推荐使用3.2方法

4.运行

将jar文件放到mcl启动器的plugin文件夹里,然后双击mcl.bat或

java -jar mcl.jar

启动mirai,开始运行

功能

QQ魔方机器人,提供:生成打乱(1~17、minx......),wca成绩查询,学习等功能

TODO

  • 黑名单(BlackList)
  • 个人永久屏蔽(PBlack)
  • 复读(Repeat)
  • 开关(Switchs)
  • 入群欢迎(Welcome)
  • 生成魔方打乱(Scramble)
  • WCA 成绩查询(WcaResultGet)
  • WCA 排名查询(WcaRankGet)
  • 粗饼链接 Link
  • 粗饼赛事查询(Competition)
  • 粗饼赛事选手查询(CompetitionCuber)
  • 生成魔方图片(Cubepic)
  • WCA成绩趋势图(Trend)
  • 学习(Learn)
  • 快递(Express)
  • 天气(Weather)
  • 群管(Admin)

鸣谢

感谢框架开发团队 @Mamoe Technologies 与C++SDK开发者 @Nambers

About

Toppahs-Cuber-QQBot : 基于mirai框架的qq机器人

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published