A Discord bot that monitors voice channel activity and sends real-time notifications.
- Monitors connections/disconnections from voice channels
- Real-time notifications in a text channel
- Channel change tracking
- Status and ping commands
- Automatic reconnection
- Lightweight
git clone https://github.com/LeoAlb208/Voice-Chat-Alert.git
cd Voice-Chat-Alertpip install -r requirements.txtCreate a .env file based on .env.example:
DISCORD_BOT_TOKEN=your_bot_token_here
TEXT_CHANNEL_ID=your_channel_id_hereThe bot reads environment variables from .env locally using python-dotenv.
python main.py- Go to the Discord Developer Portal
- Create a new application and add a Bot
- Copy the bot token and put it in the
.envfile (local) or in Discloud App Variables (hosting) - Enable privileged intents on the bot:
- Server Members Intent
- Message Content Intent
- Presence/Voice State as needed
!ping— Checks the bot's latency!status— Shows basic bot information
This project is prepared for deployment via the Discloud VS Code extension using the included discloud.config.
Important:
- Deployment goes to the Discloud account currently authenticated in your VS Code Discloud extension.
- To deploy to your own account, make sure you are logged into your own Discloud account in the extension before uploading.
Steps:
- Install and log into the Discloud VS Code extension using your Discloud account.
- Open the project in VS Code.
- Click “Upload to Discloud” (bottom-left in the status bar).
- Confirm the upload. The app will be created under the account you’re logged into.
- After the upload, open your app in the Discloud dashboard and set App Variables:
DISCORD_BOT_TOKEN— requiredTEXT_CHANNEL_ID— required
- Optionally choose the application image directly in the Discloud dashboard.
Notes:
discloud.configis included and used by the extension; users do not need to create their own..discloudignorehas been removed because it is not needed for this workflow.- The bot does not use
.envon Discloud; it reads values from App Variables.
| Variable | Description | Required |
|---|---|---|
DISCORD_BOT_TOKEN |
Discord bot token | ✅ |
TEXT_CHANNEL_ID |
ID of the text channel for notifications | ✅ |
- Do not commit your bot token.
- Use environment variables (.env locally, App Variables on Discloud).
.envis ignored by Git.
- Configuration is loaded strictly from environment variables in
main.py(noconfig.jsonfallback). TEXT_CHANNEL_IDmust be an integer.- Intents are configured in code; enable any privileged intents in the Developer Portal.
Open an issue on GitHub if you encounter problems or have questions.