Eagle is a Discord bot that logs what users are doing while in a voice channel — whether they're listening to Spotify, designing in Figma, or coding in VS Code — and tracks how long each activity lasted. It provides usage stats through slash commands with multiple time filters.
- Tracks user activity shown in Discord (like Spotify, VS Code, etc.)
- Only logs activity when:
- User is in a voice channel
- Bot is also in the same VC
- Supports multiple time filters:
Today,Past 3 Days,Past 7 Days,Past MonthPast 3 Months,Past Year,All Time
- Built with TypeScript
- Uses Firebase for the backend
git clone https://github.com/KunalSharma108/Eagle-Discord-VC-tracker.git
cd Eagle-Discord-VC-trackernpm inpm run buildnpm startUse the following command to set the VC where the bot should monitor activity:
/set-vc [VC Name]
Once you've set the VC, ask the bot to join it using:
/join-vc
Create a .env file in the root directory (same place as package.json) and fill it like this:
TOKEN=YOUR-DISCORD-BOT-TOKEN
APP_ID=YOUR-APP-ID
TEST_SERVER_ID=YOUR-TEST-SERVER-ID
CLIENT_ID=YOUR-CLIENT-ID.env file publicly.
To connect to Firebase:
- Download your
serviceAccountKey.jsonfrom the Firebase Admin SDK. - Place it in the root directory (same level as
.env,package.json, etc.) - Do not place it inside the
src/folder.
Once deployed, use slash commands like:
/stats duration:'today'
/stats duration:'past 3 days' Results will include app names and how long each user was active using them.
- Discord.js
- TypeScript
- Firebase (Admin SDK)
- Node.js
This bot only tracks visible Discord activities (like Spotify, VS Code, Figma) and only while the user and bot are in a voice channel at the same time. No private data is accessed.