-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration
Welcome to the Mod Mail Bot configuration guide! This guide will walk you through the necessary configurations to set up and customize your Mod Mail Bot.
- Configuration File (
config.ini
) - Database Schema (
schema.sql
) - Data File (
modmail_data.sqlite
) - Environmental Variables
- Setting up on Discord Developer Portal
The config.ini
file is the main configuration file for Mod Mail Bot. It contains various settings such as the bot token, command prefix, and more.
Example config.ini
:
[Main]
token = YOUR_DISCORD_BOT_TOKEN
playing = Playing a Game
command_prefix = !
[AntiSpam]
messages = 5
seconds = 10
Make sure to replace YOUR_DISCORD_BOT_TOKEN
with the actual token obtained from the Discord Developer Portal.
The schema.sql
file defines the structure of the SQLite database used by Mod Mail Bot. This file is used during the initial setup to create the necessary tables.
Example schema.sql
:
-- schema.sql
CREATE TABLE ignored (
user_id INTEGER PRIMARY KEY,
quiet INTEGER,
reason TEXT
);
The modmail_data.sqlite
file is the SQLite database file where the bot stores data, including ignored users and other relevant information.
Some configurations, such as the bot token, can be set as environmental variables. Refer to the bot's code for details on which variables are supported.
-
Create a New Application:
- Go to the Discord Developer Portal.
- Create a new application for your bot.
-
Get the Bot Token:
- In the "Bot" tab, click on "Add Bot" to get the bot token.
-
OAuth2 Setup:
- In the "OAuth2" tab, under "OAuth2 URL Generator," select the "bot" scope and the necessary permissions.
- Use the generated URL to invite the bot to your server.
That's it! You've successfully configured Mod Mail Bot. If you encounter issues, refer to the Troubleshooting section or open an issue on the GitHub Issues page.
Happy mod mailing!
Maintained by: shankypedia