The Discord Bot Logger is a simple bot built using the discord.py library that logs whenever a member joins a voice channel. It provides a timestamped log entry for each voice channel entry.
- Logs the timestamp and the name of the member when they join a voice channel.
- Provides a simple and easy-to-understand implementation.
- Python 3.x
- discord.py library (version 1.7.3 or later)
-
Clone the repository or download the source code files.
-
Install the required dependencies by running the following command:
pip install discord.py
-
Make sure the bot is invited to your Discord server using the following link: Invite Link (Replace
YOUR_BOT_CLIENT_ID
with your bot's client ID). -
Run the bot by executing the following command in the terminal:
python bot.py
You should see the message "Logged in as BOT_USERNAME" in the console, indicating that the bot has successfully logged in.
- When a member joins a voice channel, the bot will print a log entry in the following format:
TIMESTAMP: MEMBER_NAME joined VOICE_CHANNEL_NAME
Example:
2023-06-22 13:45:30: JohnDoe joined General Voice Channel