From 3f1eb4928ce3c7b1cfd94c814d3dc854e7793cf3 Mon Sep 17 00:00:00 2001 From: Zachary G Date: Sun, 31 Mar 2024 16:35:38 +0800 Subject: [PATCH] Version 0.3.1 # v0.3.1 Changed `CHANGELOG.txt` to show newest to oldest changes. Compact message sent to Discord. Fix listed services back to the generic listings in `run.py`. --- changelog.txt | 19 ++++++++++++------- run.py | 11 ++++++----- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/changelog.txt b/changelog.txt index e5e1526..db96e1f 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,14 +1,19 @@ ## Changelog -# v0.1.0 -Basic script functionality to send a message to a Discord channel when the computer is turned on. +# v0.3.1 +Changed `CHANGELOG.txt` to show newest to oldest changes. +Compact message sent to Discord. +Fix listed services back to the generic listings in `run.py`. -# v0.1.1 -Fix intents missing from script. +# v0.3.0 +Add time of script run in to Discord message. +Rename changelog.txt to CHANGELOG.txt # v0.2.0 Modified the script to include a more detailed message indicating manually specified services are up and running. -# v0.3.0 -Add time of script run in to Discord message. -Rename changelog.txt to CHANGELOG.txt +# v0.1.1 +Fix intents missing from script. + +# v0.1.0 +Basic script functionality to send a message to a Discord channel when the computer is turned on. diff --git a/run.py b/run.py index b864713..5438792 100644 --- a/run.py +++ b/run.py @@ -1,4 +1,4 @@ -## Version: 0.3.0 +## Version: 0.3.1 ## License: https://github.com/redtrillix/DiscordComputerStatus/raw/main/LICENSE ## Git Repository: https://github.com/redtrillix/DiscordComputerStatus ## Changelog: https://github.com/redtrillix/DiscordComputerStatus/blob/main/CHANGELOG.txt @@ -16,15 +16,16 @@ CHANNEL_ID = 'your_channel_id_here' # Define the services that are up and running -services = ["Satisfactory", "Music Bot", "Lyric Bot", "Palworld", "Minecraft"] +services = ["Service1", "Service2", "Service3"] # Get the current time current_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S") # Create the detailed message -MESSAGE = f"Computer is turned on at {current_time}! Services that are up and running:\n\n" -for service in services: - MESSAGE += f"- {service}\n" +MESSAGE = f"**System Notification:**\n\n" +MESSAGE += f"🔔 System turned on at {current_time}.\n" +MESSAGE += "**Services Running:**\n\n" +MESSAGE += "\n".join([f"- {service}" for service in services]) # Define the intents intents = Intents.default()