Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified src/__pycache__/analyse_and_bot_functions.cpython-38.pyc
Binary file not shown.
3 changes: 3 additions & 0 deletions src/analyse_and_bot_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

month_length = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
days_of_the_week = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
days_of_the_week2 = {"Mon": 0, "Tue": 1, "Wed": 2, "Thu": 3, "Fri": 4, "Sat": 5, "Sun": 6}


def upload_picture(picture_path):
Expand Down Expand Up @@ -92,6 +93,8 @@ def process_input_message(message):
"""
if message == "":
return 0, "", -1
if message[:2] == "gr" and message[2] == ':' and message[3:].strip() in days_of_the_week2:
return 13, "", days_of_the_week2[message[3:].strip()]
if message[0] == '~':
if not check_recommend_time(message):
return -1, "", -1
Expand Down