Skip to content
This repository was archived by the owner on May 26, 2023. It is now read-only.

Commit 664e4a2

Browse files
committed
update noCourse message
1 parent 7679f0c commit 664e4a2

File tree

3 files changed

+20
-8
lines changed

3 files changed

+20
-8
lines changed

data/courseList.json

+1-1
Large diffs are not rendered by default.

main.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ def getCourseName(update, context):
159159

160160
if searchResult == -1:
161161
update.message.reply_text(
162-
random.choice(messages.emptyCourseListMsg))
162+
random.choice(messages.emptyCourseListMsg) +
163+
messages.suggestPDFMsg.format(termId, termId, termId),
164+
parse_mode=ParseMode.MARKDOWN_V2)
163165
return
164166

165167
keyboard = []

messages.py

+16-6
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,28 @@
4242
]
4343

4444
emptyCourseListMsg = [
45-
"Такого курса нет в курс листе, либо я ошибка природы :(",
46-
"Я не панимат тебя, кажись такого курса нет :(",
45+
"Такого курса нет в курс листе, либо я ошибка природы :\(",
46+
"Я не панимат тебя, кажись такого курса нет :\(",
4747
"Я не смог найти такой курс, пласти",
48-
"Прости меня сенпай, я не смог найти такой курс :(",
48+
"Прости меня сенпай, я не смог найти такой курс :\(",
4949
"Я кажется слепой, потому что не вижу такого курса",
5050
"Я не нашёл курс, но хотя бы не потерял тебя",
51-
"Если ты ждал какого-то знака, то вот он. Такого курса нет",
52-
"Этот курс как твои недостатки. Его невозможно найти",
53-
"Я не нашел такой курс. Не наказывайте, позязя", "course not detected"
51+
"Если ты ждал какого\-то знака, то вот он\. Такого курса нет",
52+
"Этот курс как твои недостатки\. Его невозможно найти",
53+
"Я не нашел такой курс\. Не наказывайте, позязя",
54+
"course not detected"
5455
]
5556

5657
noScheduleMsg = "cannot find schedule or it was not uploaded"
58+
59+
suggestPDFMsg = """
60+
Some courses are absent in my database
61+
\(I am taking courses from public course catalog\)
62+
But they are present in PDF:
63+
[Undergraduate](http://registrar.nu.edu.kz/registrar_downloads/json?method=printDocument&name=school_schedule_by_term&termid={}&academiclevel=1)
64+
[Graduate](http://registrar.nu.edu.kz/registrar_downloads/json?method=printDocument&name=school_schedule_by_term&termid={}&academiclevel=2)
65+
[PhD](http://registrar.nu.edu.kz/registrar_downloads/json?method=printDocument&name=school_schedule_by_term&termid={}&academiclevel=3)
66+
"""
5767
registrarNotWorkingMsg = """Registrar is not working :C or working veryyyy sloooooowly.
5868
Or maybe my creator is lazy to fix bugs.
5969
Try again later, please.

0 commit comments

Comments
 (0)