Skip to content

Commit

Permalink
Version 0.3.1
Browse files Browse the repository at this point in the history
# 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`.
  • Loading branch information
redtrillix committed Mar 31, 2024
1 parent fdb973d commit 3f1eb49
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
19 changes: 12 additions & 7 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -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.
11 changes: 6 additions & 5 deletions run.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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()
Expand Down

0 comments on commit 3f1eb49

Please sign in to comment.