https://github.com/trevorbollinger/statbot
Discord Server Statistics tool using discord.py, Django, and React
https://github.com/trevorbollinger/statbot
analytics discord django postgres react statistics
Last synced: 5 months ago
JSON representation
Discord Server Statistics tool using discord.py, Django, and React
- Host: GitHub
- URL: https://github.com/trevorbollinger/statbot
- Owner: trevorbollinger
- Created: 2024-12-24T21:36:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-31T01:51:48.000Z (over 1 year ago)
- Last Synced: 2025-04-20T23:12:40.809Z (about 1 year ago)
- Topics: analytics, discord, django, postgres, react, statistics
- Language: Python
- Homepage:
- Size: 570 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# StatBot
StatBot is a Discord Server Statistics tool built with discord.py, Django, and React. It allows you to archive and analyze messages from your Discord server.
## Features
- **Real-time Archiving**: Automatically archive messages as they are sent.
- **Historical Import**: Import previous messages using JSON data from Discord Chat Exporter.
- **Daily Archiving**: Archive all messages sent on any previous day without using Discord Chat Exporter.
- **Analytics Dashboard**: View analytics in real time on a React web interface, including:
- Recent messages
- Graph showing messages sent over the last 24 hours
- Total messages sent
- Average characters per message
- Most active day
- Average messages per day
- Per Channel Statistics
- Per User Statistics
## Setup
- In the StatBot folder, open the `discord` folder.
- Find the file named `.env` (turn on hidden files).
- Paste your Discord token after the equals symbol, do not add spaces or quotes.
- Start with `docker compose up`.
- Dashboard will be accessable on the hostURL defined in config (`http://localhost:8068` by default)
## Config
- In the `config.js` file you can edit config settings.
- **Title**: Name of the frontend
- **hostUrl**: Frontend URL webserver runs on
- **apiUrl**: Backend URL Django runs on
- **Note**: If you change these ports, make sure to also change them in `docker-compose.yml`
- For the URLs, you could also use 127.0.0.1, your server's internal IP, your external IP, your domain name, etc.
## License
This project is open-source.