Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rly0nheart authored Apr 19, 2022
1 parent 1a6e3bb commit eeda477
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
'''

import os
import sys
import logging
import requests
import platform
Expand Down Expand Up @@ -206,7 +207,7 @@ def on_start(self):
# Use 'cls' to clear screen on Windows based machines
# Otherwise, use 'clear'
while True:
if platform.system().lower().startswith(('win','darwin')):
if sys.platform.lower().startswith(('win','darwin')):
subprocess.run(['cls'])
else:
subprocess.run(['clear'],shell=False)
Expand Down Expand Up @@ -441,13 +442,9 @@ def changelog(self):
# lol yes the changelog is hard coded
changelog_text = f'''
{red_bg}v1.5.2-alpha [CHANGELOG]{reset}
• Users will now get to choose whether to enable colors or not
• Cleaned code
• Improved perfomance
• Will be ignoring unknown commands instead of printing the error
• Major bug fixes
{red_bg} {reset}
{red_bg}v1.6.0-stable [CHANGELOG]{reset}
• Minor improvements and bug fixes
{red_bg} {reset}
'''
print(changelog_text)

Expand Down Expand Up @@ -500,7 +497,7 @@ def help(self):
# Creating the .logs directory
# If the current system is Windows based, we run mkdir command without sudo
# Else we run the mkdir command with sudo
if platform.system().lower().startswith(('win','darwin')):
if sys.platform.lower().startswith(('win','darwin')):
subprocess.run(['mkdir','.logs'])
else:
subprocess.run(['sudo','mkdir','.logs'],shell=False)
Expand Down

0 comments on commit eeda477

Please # to comment.