This project is a Discord bot and server monitor that provides analytics related to server activity, online members, and voice chat usage.
- Post a meeting and check how many users are in the meet after a few minutes.
- Get the number of online members in the server and categorize them based on their roles.
- Retrieve the active users in each voice chat and store the information in the database.
- Node.js
- Express.js
- Discord.js
- MongoDB
- dotenv
- child_process
- Fork and Clone the repository:
git clone https://github.com/your-username/GhackDIscordBott.git
cd GhackDIscordBot- Set up your environment variables file: Create a .env file and add the following:
TOKEN=your-discord-bot-token
MONGO_URI=your-mongodb-uri
DISCORD_COMMAND=your-discord-shell-command- Install the dependecies:
bun install- Run the server
bun start- End points
- /online/: [GET]: get all the online members from the guild
- /save-meeting/: [POST]: save the meeting info
- /getUsersInVoice/: [GET]: get all the users in a given voice channel, and this can be done manually by requesting: /save-meeting; in this case it will be called after few minutes
- /create-poll/: this allows you to create poll and get the votes, this can be used to send announcements as well.