Skip to content

mxwiser/qqbot_rust

Repository files navigation

一个基于Rust的QQ官方机器人基本框架

  • [✓] 支持web_hook验证
  • [✓] 支持消息去重
  • [✓] 支持群聊、私聊消息接收
  • [✓] 支持群聊、私聊文本消息回复
  • [] 支持图文消息发送
  • [] 未完待续...

基础功能框架已经实现,其他功能基于框架开发即可。

使用前请确保环境变量能够被准确加载,参考bot.env.example。例如:重命名为bot.env,并配置从bot.env中加载环境变量.代码参考main.rs.

本库使用Tokio运行时,监听的API路径为 "/"

docker config
rustup target add x86_64-unknown-linux-musl 
apt-get install musl-tools 
cargo build --release --target x86_64-unknown-linux-musl --features openssl/vendored
docker compose up --build -d

About

A webhook framework for QQBot based on Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages