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.
- 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.
-
Clone this repository to your local machine or download the ZIP file.
-
Navigate to the project directory.
-
Install the required Python packages using pip.
pip install -r requirements.txt
- 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
- Run the script using the following command:
python run.py
- The script will send a notification message to the specified Discord channel with system information when the computer runs this script.
- 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.
This project is licensed under the MIT License. See the LICENSE file for details.