Skip to content
This repository was archived by the owner on Jul 16, 2026. It is now read-only.
ATCraftMCPublic archive

About

a customized qq group bot for ATCraft

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

Marmot

Marmot is a modular framework for building QQ group bots based on the OneBot v11 protocol. It provides scheduling, trigger-based actions, logging, and an extensible plugin system.

Contributors Forks Stargazers Issues MIT License LinkedIn

Table of Contents


Getting Started

Marmot is written in Go and designed to integrate with OneBot v11 for QQ messaging.
It supports modular extensions, YAML-based configuration, and flexible scheduling.

Prerequisites

  • Go 1.22 or newer
  • SQLite (for marmot_data.db)
  • A running OneBot v11-compatible adapter (e.g., go-cqhttp)

Installation

  1. Clone the repository:

    git clone https://github.com/cubevlmu/marmot.git
    cd marmot
  2. Install dependencies:

    go mod tidy
  3. Run the bot:

    go run app/main.go

Directory Structure

marmot/
├── app/                # Application entrypoint (main.go)
├── bot/                # Bot core logic
│   ├── config.yml      # Main configuration
│   ├── scheduler.yml   # Task scheduling rules
│   ├── trigger.yml     # Event triggers
│   ├── filter.yaml     # Message filtering rules
│   ├── marmot_data.db  # SQLite database
│   └── logs/           # Runtime logs
├── core/               # Core framework services
├── modules/            # Modular extensions
├── onebot/             # OneBot v11 protocol implementation
│   └── message/        # Message serialization & parsing
├── utils/              # Utility helpers
├── go.mod              # Go module definition
├── go.sum              # Go dependencies lockfile
└── LICENSE             # MIT License

Architecture

Marmot is built with modularity in mind:

  • Core Layer (core/) – Provides essential services such as configuration, logging, and runtime management.
  • Modules (modules/) – Extendable plugins for adding new features without modifying core code.
  • OneBot Integration (onebot/) – Handles QQ group messaging via the OneBot v11 protocol. Modified from ZeroBot project.
  • Bot System (bot/) – Orchestrates configurations, triggers, schedules, and persistent data.

Deployment

Marmot can be deployed alongside any OneBot-compatible adapter (e.g., go-cqhttp). A basic deployment looks like this:

  1. Start your OneBot adapter (go-cqhttp).

  2. Configure bot/config.yml with your connection details.

  3. Run Marmot with:

    go build -o marmot ./app
    ./marmot

Built With

  • Go – Core programming language
  • OneBot v11 – Messaging protocol for QQ bots
  • SQLite – Lightweight database storage
  • YAML – Configuration format

Contributing

Contributions are what make the open source community great! Any contributions you make are greatly appreciated.

How to Contribute

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Versioning

This project uses Git for version control. Check the repository tags for available versions.


Authors

  • Cubevlmu – GitHub
  • QQ Group Support

See also the list of contributors who participated in this project.


License

Distributed under the GPLv2 License. See LICENSE for details. Onebot folder is a embedded version of ZeroBot, more information please check the README.md in it.


Acknowledgements


Special Thanks


About

a customized qq group bot for ATCraft

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages