Gako358 / discologs

Discord BOT logging user activity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discord Bot Logger

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.

Features

  • Logs the timestamp and the name of the member when they join a voice channel.
  • Provides a simple and easy-to-understand implementation.

Prerequisites

  • Python 3.x
  • discord.py library (version 1.7.3 or later)

Installation

  1. Clone the repository or download the source code files.

  2. Install the required dependencies by running the following command:

    pip install discord.py

Usage

  1. 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).

  2. 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.

  1. 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

About

Discord BOT logging user activity


Languages

Language:Nix 78.9%Language:Python 21.1%