Skip to content

Commit 145787b

Browse files
committed
added timezone to config and fixed requirments
1 parent 75d6b9c commit 145787b

5 files changed

Lines changed: 7 additions & 1 deletion

File tree

70 Bytes
Binary file not shown.

configs.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ NOTIONTOKEN = NOTION TOKEN HERE
33
DATABASEID = DATABASE ID HERE
44
ICS_URL = ICS URL HERE
55

6+
[TIMEZONE]
7+
TIMEZONE = US/Eastern
8+
69
#optional
710
[DISCORD]
811
DISCORDBOT_TOKEN = OPTIONAL DISCORD BOT TOKEN HERE

discordIntegration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
client = discord.Client(intents=intents)
1111

1212
timeNow = datetime.now()
13-
Timezone = "US/Eastern"
13+
Timezone = sharedVars.getConfig("TIMEZONE")
1414

1515
logFile = "discordLogs.log"
1616

requirments.txt

2.09 KB
Binary file not shown.

sharedVars.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ def getConfig(configRequest : str):
1616

1717
elif configRequest == "DISCORDBOT_TOKEN":
1818
return config["DISCORD"]["DISCORDBOT_TOKEN"]
19+
20+
elif configRequest == "TIMEZONE":
21+
return config["TIMEZONE"]["TIMEZONE"]
1922

2023
ASSIGNEMTNAMES = []
2124
COURSECODE = []

0 commit comments

Comments
 (0)