Skip to content

openguard-bot/openguard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

328 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenGuard

OpenGuard is a modular and extensible Discord moderation bot, designed to automate server management, enforce community rules, and protect members from abuse and spam. Written in Python and licensed under GPL-3.0, OpenGuard integrates seamlessly into Discord servers and provides customizable features for a wide range of moderation needs.

Features

  • Automated Moderation: Detects spam, abusive language, and unwanted behaviors with configurable triggers.
  • Logging & Auditing: Tracks moderation actions and provides audit logs for server administrators.
  • Extensible Plugins: Add or remove features via a clean plugin architecture for future-proof customization.
  • Notifications: Sends alerts to moderators and users for rule violations, warnings, and bans.
  • Multi-language Support: Adapt moderation messages for international communities.

Setup

Prerequisites

Installation

Clone the repository:

git clone https://github.com/openguard-bot/openguard.git
cd openguard

Install dependencies:

yarn install
uv pip install -r pyproject.toml --group dashboard-backend --group dev

Configuration

  1. Copy the sample configuration:
    cp config.example.yaml config.yaml
  2. Edit config.yaml to add your Discord bot token and server-specific settings.
    • Set Dashboard.ENABLED to true and provide a URL if you want to enable the dashboard interface.
    • Set Dashboard.COMMAND_ENABLED to true to load a command that links users to the dashboard.
    • Set LOAD_CONFIG_COG to false if you do not want the configuration commands loaded.

Running the Bot

python bot.py

Usage

Once started, you will need to invite the bot to your server, then it will begin monitoring activity according to your configuration.

  • Use o!help in Discord to view available commands.
  • Moderators can adjust rules and actions via the configuration file or bot commands (if enabled).
  • Audit logs are stored in the logs/ directory.

Contributing

Contributions are welcome! Please fork the repo, create a feature branch, and submit a pull request.

  • Follow PEP8 style guidelines.
  • Add tests for any new features.
  • Ensure that no sensitive information (e.g., bot tokens) is committed.

License

This project is licensed under the GNU General Public License v3.0. See LICENSE for details

Links

About

Open-source discord bot for server moderation, including AI features

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors