Skip to content

This Python script sends a notification message to a Discord channel when the computer is turned on. The message includes system information such as the current time, hostname, public IP address, CPU usage, memory usage, and a list of specified running services.

License

Notifications You must be signed in to change notification settings

redtrillix/DiscordComputerStatus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub release (latest SemVer) GitHub license Static Badge Static Badge

Computer Status Discord Bot

This Python script sends a notification message to a Discord channel when the computer is turned on. The message includes system information such as the current time, hostname, public IP address, CPU usage, memory usage, and a list of specified running services.

Prerequisites

  • Python 3.x installed on your system.
  • Required Python packages: discord.py, psutil, requests, python-dotenv.
  • A Discord bot token. You can create a new bot and get its token from the Discord Developer Portal.

Installation

  1. Clone this repository to your local machine or download the ZIP file.

  2. Navigate to the project directory.

  3. Install the required Python packages using pip.

pip install -r requirements.txt
  1. Edit the .env file in the project directory and add your Discord bot token and channel ID in the following format:
TOKEN=your_bot_token_here
CHANNEL_ID=your_channel_id_here

Usage

  1. Run the script using the following command:
python run.py
  1. The script will send a notification message to the specified Discord channel with system information when the computer runs this script.

Customization

  • You can customize the list of running services by modifying the services list in the script.
  • Additional system information or features can be added as needed.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

This Python script sends a notification message to a Discord channel when the computer is turned on. The message includes system information such as the current time, hostname, public IP address, CPU usage, memory usage, and a list of specified running services.

Topics

Resources

License

Stars

Watchers

Forks

Languages