Meliora is a Discord bot built with discord.py
that captures server metrics,
stores them in an SQLite database, and presents them via a Flask web
application.
- Capture real-time server metrics from Discord.
- Store metrics in an SQLite database.
- Display metrics via a Flask web application.
- Python 3.6+
- Pip package manager
- A Discord account and server with administrative access
- Create a
.env
file in the root of your project directory. - Add Meliora's bot token to the
.env
file:
DISCORD_BOT_TOKEN=YOUR_BOT_TOKEN
- Run the
database_setup.py
script to initialize the SQLite database:
bash python database_setup.py
Ensure Meliora has the following permissions:
- View Audit Log
- Go to the Discord Developer Portal.
- Click on the Meliora bot application.
- Navigate to the "OAuth2" section.
- Under "OAuth2 URL Generator", select "bot" in the "SCOPES" section.
- Select the necessary permissions in the "BOT PERMISSIONS" section.
- Copy the generated URL, open it in your browser, select a server, and invite Meliora.
- Start the bot:
bash python discord_bot.py
- In a separate terminal, start the Flask application:
bash python app.py
- Open a web browser and navigate to
http://localhost:5000/metrics
to view the metrics.
Contributions are welcome! Please fork this repository and open a pull request with your changes.