Skip to content

Commit

Permalink
Update controlium.pyw
Browse files Browse the repository at this point in the history
  • Loading branch information
ashfaaqrifath authored Jun 30, 2024
1 parent a2f722a commit 5ea46bd
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions controlium.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def command_unit(message):
notification.notify(
title="Windows notification",
message="Controlium engine shutdown",
app_icon="appLogo.ico",
app_icon=None,
timeout=3,)

bot.reply_to(message, "Engine shutdown")
Expand Down Expand Up @@ -118,7 +118,7 @@ def command_unit(message):
notification.notify(
title="Windows notification",
message=msg,
app_icon="appLogo.ico",
app_icon=None,
timeout=5,)
bot.reply_to(message, "Done")

Expand Down Expand Up @@ -334,7 +334,7 @@ def command_unit(message):
bot.reply_to(message, f"Searching {query}")

elif message.text.lower() == "/version":
bot.reply_to(message, "Controlium Engine v1.6.0")
bot.reply_to(message, "Controlium Engine v1.6.1")

else:
bot.reply_to(message, "Invalid command")
Expand Down Expand Up @@ -388,13 +388,6 @@ def windows_logger():
logging.info(f"Opened {window.title}")
logged_windows.add(window.title)

if window.title == "This PC":
logging.info("Opened File Explorer")
elif window.title == "D:/":
logging.info("Opened Local Disk")
elif window.title == "E:/":
logging.info("Opened Local Disk")

for title in logged_windows.copy():
if title not in gw.getAllTitles():
logging.info(f"Closed {title}")
Expand All @@ -421,7 +414,7 @@ def key_release(key):
def keystroke_logger():
time_stamp = datetime.datetime.now().strftime("%D:%h:%H:%M:%S")
with open(key_log_file, "a") as f:
f.write(f'''CONTROLIUM ENGINE v1.6.0
f.write(f'''CONTROLIUM ENGINE v1.6.1
{str(time_stamp)}
<< KEYSTROKE LOG >>
Expand All @@ -441,7 +434,7 @@ def keystroke_logger():

def activity_logger():
time_stamp = datetime.datetime.now().strftime("%D:%h:%H:%M:%S")
logging.info(f'''CONTROLIUM ENGINE v1.6.0
logging.info(f'''CONTROLIUM ENGINE v1.6.1
{str(time_stamp)}
<< ACTIVITY LOG >>
Expand Down Expand Up @@ -550,7 +543,7 @@ if __name__ == "__main__":


# MIT License
# Copyright (c) 2024 Ashfaaq Rifath - Controlium Engine v1.6.0
# Copyright (c) 2024 Ashfaaq Rifath - Controlium Engine v1.6.1
# All rights reserved.

# T6 Engine
Expand Down

0 comments on commit 5ea46bd

Please sign in to comment.