How henryxiaoyang/xybot works
Project Type and Purpose
• XYBot is a WeChat bot that interacts with WeChat via hooks. It provides both user-oriented and administrator features such as weather queries, news, ChatGPT integration, game queries, and more.
• The system is highly customizable through self-written plugins, and it supports scheduled tasks (“plans”) and dynamic plugin management. Deployment is supported via Docker as well as native Windows execution.
File Structure
• Top-Level Directories:
• Docker: Contains Dockerfile, docker-compose.yaml, and related shell scripts for containerized deployment.
• docs: Contains documentation files, deployment guides, and instructions for both Linux and Windows.
• plugins: Organized into several subdirectories (e.g., command, image, join_group, mention, text, voice) that encapsulate the distinct functionalities of the bot.
• plans: Contains scheduled tasks (Python scripts) that automate recurring activities (e.g., cache clearing, daily greetings).
• utils: Holds core utility modules that include the plugin manager, database interaction, and the primary XYBot integration logic.
• wcferry_helper: Integrates with WeChat and possibly acts as an adapter between the bot and the underlying WeChat communication layer.
• main_config.yml and start.py: Represent configuration and the primary entry point used to boot the application.
• Other notable files include CI/CD configurations in .github, licensing, and the overall README for instructions and feature details.