Giter Club home page Giter Club logo

qqrot-interview's Introduction

如果觉得本项目对您有帮助,那就点个 star 吧 💕

overview

基于oicq的一个 qq 机器人,可用于每日定时向 qq 群里面发送面试题或者@机器人发送对应的 tag,机器人即可发送对应类别的面试题,部署简单,简单配置即可开箱即用,支持部署到自己的服务器,后端使用的是node,数据库使用 mysql

add-interview可以帮助您快速地向数据库中录入面试题,您可以将其部署到自己的服务器上。

具体效果

  • 根据 tag 随机抽取一条对应分类的面试题 leftover
  • 每日定时发送面试题 leftover

Feature

  • ⚡ 一分钟配置,即可开箱即用
  • 🚀 定时发送面试题
  • 🎉 将面试题进行分类,群友@机器人,发送对应的类别,机器人将从数据库中随机获取并发送一条该类别的面试题
  • 💕 支持 docker 快速部署

Deploy

Docker-compose

1. git clone  --depth=1 https://github.com/robot-bingbing/qqRot-interview.git

2. cd qqRot-interview

3. cp .env.example .env # 按照文件里的说明修改配置

4. docker-compose up #第一次会提示登录,出现加载好友成功,则说明部署成功

Docker

1. git clone  --depth=1 https://github.com/robot-bingbing/qqRot-interview.git

2. cd qqRot-interview

3. docker network create qqrot-interview-network

# -e MYSQL_ROOT_PASSWORD 设置数据库密码,mysql环境变量see https://hub.docker.com/_/mysql

4. docker run -it -e MYSQL_ROOT_PASSWORD=123456 -p 12501:3306 --network qqrot-interview-network --restart  on-failure --platform linux/amd64 --name qqrot-mysql-server -v qqrot-interview-mysql-data:/var/lib/mysql registry.cn-hangzhou.aliyuncs.com/left0ver/qqrot-interview-mysql

5. cp .env.example .env # 按照文件里的说明修改配置

# 具体环境变量看 https://github.com/robot-bingbing/qqRot-interview/blob/main/.env.example
#第一次会提示登录,出现加载好友成功,则说明部署成功

6. docker run -it --env-file  ./.env --network qqrot-interview-network --restart on-failure --name qqrot-server --platform  linux/amd64 registry.cn-hangzhou.aliyuncs.com/left0ver/qqrot-interview-node

Manual

1. git clone  --depth=1 https://github.com/robot-bingbing/qqRot-interview.git

2. cd qqRot-interview

3. yarn install

4. 在mysql中新建一个数据库 qqrot

5. cp .env.example .env

6. 修改.env文件里的配置即可,具体配置请看文件内容

7. yarn init:database  # 初始化数据库,自动生成表结构,即可在数据库中看到三张表
# 如果成功,终端会出现 "成功初始化表结构的字样" ,失败则会出现 "初始化表结构失败"的字样

8. yarn start

登陆

第一次运行需要滑块登陆,同时会在 lib 目录下生成一个 data 文件夹(不要删除), 同时命令行里会提示让你填写 ticket,点击链接跳转到滑块登陆页面,先打开开发者工具, 再移动滑块登陆,之后从开发者工具网络请求中 cap_union_new_verity 中得到 ticket,复制它的值粘贴到命令行中即可登陆(之后可不用重复登陆)

TODO:

  • 使用 github action 做定时任务
  • 使用 typeorm 来重构数据库的操作
  • 搭建一个前台用来录入面试题
  • 添加对微信机器人的支持
  • 添加查询天气预报的功能
  • 使用 vuepress 或者 vitepress 来编写使用文档

License

MIT

qqrot-interview's People

Contributors

left0ver avatar pokisemaine avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

pokisemaine

qqrot-interview's Issues

能否添加根据题目 tag 来抽取指定类型题目

除了服务器定时任务发送默认题目外,能否添加互动的功能根据群友的消息来抽取特定类型的题目
效果:

群友:@qqbot tag:js
服务器检测到群友的消息 "tag:js" 后随机抽取 tag 为 js 的题目
qqbot:@群友 说一下 js 的垃圾回收和其他语言的垃圾回收有什么区别

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.