Code Monkey home page Code Monkey logo

qqbot's Introduction

qqbot

该项目根据 QQ 机器人官方提供的 API 来实现,并且提供了一些简单的功能。

设计文档

依赖环境

  • Go 1.17
  • Redis

快速使用

打卡功能

在频道内 AT 对应机器人,并使用 /打卡 指令来进行打卡操作。 打卡成功后,机器人会回复打卡成功,并返回获得的积分和当前总积分。 注意:每天只能打卡一次,重复打卡不会获得积分。 img.png

开发环境搭建

  1. 拉取项目代码 git clone https://github.com/Yni9ht/qqbot.git
  2. 安装依赖 go mod tidy
  3. 在项目根目录的 config.yaml 中填写配置信息
botconfig:
  appid: #{申请的机器人 AppID}
  token: #{申请的机器人 Token}
redis:
  host: #{Redis 连接地址}
  port: 6379
  password:
  db: 0
  1. 启动机器人 go run qqbot.go

项目部署

Docker 部署

使用项目编写好的 Dockerfile 来部署项目。 docker build --tag yni9ht/qqbot-server:beta .

qqbot's People

Contributors

yni9ht avatar

Watchers

 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.