Giter Site home page Giter Site logo

qqrobot's Introduction

QQRobot

QQRobot

✨ 基于 Mirai + mirai-api-http + NestJS 实现的一项 QQ 机器人项目✨

license license

license

概述

基于MiraiQQ各项事件监听与收发功能,支持自定义组合操作QQ能力,同时借助Mirai-Api-Http封装提供RESTful API,实现对其他语言的支持。

功能介绍

  • 多群消息转发互通,实现跨群聊天功能
  • 接入天行API,通过检测关键字实现诸如获取 舔狗日记彩虹屁(一段文字)等 功能
  • 支持输入关键字实现群员投票踢人能力

更多功能正在持续开发中...

🚀 开发手册

环境准备

整体环境依赖于Mirai,故首先需要安装相关环境提供QQ托管能力。

安装 Mirai 环境

  1. 安装Mirai Console Loader相关安装地址

这里笔者采用它提供的自动安装方式未成功,故采用的手动方式,如果自动安装不行,建议采用手动安装,手动安装的话会需要你安装一个大于11的JDK,这里建议采用开源版本的。

  1. 使用Mirai Console Loader安装mirai-api-http插件。
mcl --update-package net.mamoe:mirai-api-http --channel stable --type plugin

相关API地址:mirai-api-http API 文档

这里主要是因为笔者服务端采用Nodejs环境进行开发,故需要该插件提供RESTful接口与websocket连接与QQ通信。

  1. 启动MCL(上面安装的)。
  2. 输入登录指令,将一个用于机器人的QQ号进行登录。

在上述步骤都完成之后,你需要安装的东西基本完毕了,可以启动本项目进行进一步服务端开发了。

克隆(下载)项目

git clone [email protected]:STDSuperman/QQRobot.git

项目启动

进入克隆后的项目,执行安装命令,安装完毕之后执行启动命令。

使用npm
npm i
npm run start
使用yarn
yarn
yarn start

qqrobot's People

Contributors

stdsuperman avatar

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.