Skip to content

About

A Discord bot that warns players and helps manage player alerts.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

AlertBot Discord Warning Bot

AlertBot is a Discord bot for warning players and managing moderation records with Discord slash commands. It stores server warnings in a local JSON file, sends warning notifications by direct message when possible, and lets authorized moderators view or clear a member’s warnings.

Install

  1. Install Python 3.9 or newer.

  2. Download or clone the project files.

  3. Install the dependencies:

    pip install -r requirements.txt
  4. Create a .env file in the project directory.

  5. Add your Discord bot token to the .env file:

    DISCORD_TOKEN=your_discord_bot_token_here
  6. Invite the bot to your Discord server with permissions to use application commands and moderate members.

  7. Start the bot:

    python bot.py

The bot creates warnings.json automatically when the first warning is saved.

Use

Use the following slash commands in a server:

  • /warn member reason issues a warning to a member. The command requires the Moderate Members permission.
  • /warnings member displays the member’s saved warnings privately to the moderator. The command requires the Moderate Members permission.
  • /clearwarnings member removes all saved warnings for a member. The command requires the Manage Server permission.

Warnings include the reason, moderator, and creation time. The bot attempts to notify the warned member by direct message. If direct messages are closed, the warning remains saved and the moderator is informed.


More Discord bot projects by EnderDevelopment: https://github.com/EnderDevelopment

Project page: https://dash.enderdevelopment.com/community/e253c06d-8cea-4149-8778-f664d948b7ff?utm_source=github&utm_medium=readme&utm_campaign=auto_publish&utm_content=e253c06d-8cea-4149-8778-f664d948b7ff

About

A Discord bot that warns players and helps manage player alerts.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages