A real-time statistics monitoring system for the SINEWAVE Development Discord server
- Discord Bot: Collects member count and message activity data every 10 minutes
- Web Dashboard: Displays beautiful, interactive charts of server statistics
- Data Storage: Maintains historical records in JSON files with automatic GitHub commits
- Real-time member count tracking (total and online)
- Message activity monitoring (messages per 10-minute interval)
- Historical data visualization with interactive charts
- Sleek, dark-themed interface with SINEWAVE branding
- Responsive design that works on all devices
- Custom time range selection (hour, day, week, month, or all time)
- Auto-refresh capability
- Automatic data collection every 10 minutes
- Data retention for 7 days (configurable)
- Automatic Git commits and pushes to maintain version history
- Backend: Python Discord bot using discord.py
- Frontend: Modern HTML/CSS/JavaScript dashboard
- Data Storage: JSON files with Git version control
- Visualization: Chart.js for interactive graphs
monitor.py
: Discord bot that collects and stores statisticsindex.html
: Dashboard interfacestyles.css
: Custom styling for the dashboardscript.js
: Interactive functionality and chart renderingmember_count.json
: Historical member datamessages.json
: Historical message activity data
The bot collects two types of data:
-
Member Statistics:
- Total server members
- Online members (any status except offline)
-
Message Activity:
- Count of messages sent in all channels in 10-minute intervals
Data is stored in JSON format and automatically committed to GitHub every 10 minutes.
/stats
: Displays server statistics directly in Discord- Shows member counts and message activity for different time periods (1 day, 3 days, 7 days)
The web dashboard provides:
- Current status overview (total members, online members, recent messages)
- Interactive line charts for member and message statistics
- Time range selector to view different periods
- Manual refresh and auto-refresh options
This project is licensed under the MIT License - see the LICENSE file for details.
- Discord.py for the Discord API wrapper
- Chart.js for beautiful data visualization
- GitHub for data storage and version control