StatStream is a web analytics tracking project designed to monitor and store website statistics using Discord for reporting. The goal of this project is to track essential website data, such as traffic and user interactions, and send that data to a Discord channel using a custom bot.
- Website Analytics: Track website activity like page views, user interactions, and more.
- Discord Integration: Use a custom Discord bot to report website statistics in real-time.
- Customizable: Easily extend the analytics and reporting functionality to fit your needs.
- Node.js (for the Discord bot backend)
- Discord bot (with a bot token)
- Discord.js (for Node.js Discord bot)
- Go to the Discord Developer Portal.
- Create a new bot.
- Get the bot token.
- Invite the bot to your server.
Clone the repository to your local machine:
git clone https://github.com/yourusername/statstream.git
cd statstream
Install the required dependencies:
For the Node.js bot:
cd statsteam
bun install
In the discord-bot
folder, create a .env
file with the following content:
DISCORD_TOKEN=your-discord-bot-token
APP_ID=your-bot-app-id
DISCORD_GUILD_ID=your-discord-server-id
Once your bot is configured, run the bot using:
node main.js
Once everything is set up, your Discord bot will begin reporting the tracked website statistics in real-time. You can extend the functionality by adding more events and analytics to track.
Contributions are welcome! Please open an issue or submit a pull request with any improvements or bug fixes.
- Fork the repository
- Create a new branch (
git checkout -b feature-name
) - Make your changes
- Commit your changes (
git commit -am 'Add new feature'
) - Push to the branch (
git push origin feature-name
) - Open a pull request
Distributed under the MIT License. See LICENSE
for more information.
- Discord.js for the Node.js Discord library