-
Notifications
You must be signed in to change notification settings - Fork 0
/
links.py
73 lines (59 loc) · 2.04 KB
/
links.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
listOfAlgorithms = [
'Graph \U0001f4ca',
'Strings \U0001f4c4',
'Data Structures \U0001f4d2',
'Math \U0000270f',
'Sorting \U0001f5d2',
'Geometry \U0001f4d0',
'Other \U0000269c',
'Combinatorics \U0001f52d',
]
try_again_text = """
Please try to write algorithm name correctly.
You can use /help command to see the list of commands
"""
go_back_text = 'Go to the main menu \U00002b05'
idForAlgorithms = {}
for i in range(len(listOfAlgorithms)):
idForAlgorithms[listOfAlgorithms[i]] = i
search_text = 'Search \U0001f50e'
algorithms_text = 'Algorithms \U0001f4d5'
donation_text = 'Donation \U0001f4b3'
credentials_title = 'Credentials \U0001f4c3'
rqToText = {
'/search': search_text,
'/algorithms': algorithms_text,
'/donation': donation_text
}
search_message_text = 'Please write down the tag to find algorithm:'
credentials_text = """
The project has been created and fully written by Khibadullin Orazbek
The algorithm sources are taken from:
1. https://github.com/askdfjlas/cp-algorithms
2. https://github.com/Skeef79/CP-Algo/
3. https://github.com/AllAlgorithms/
4. https://github.com/sbmaruf/Algorithms-Code-Library/
5. https://github.com/ADJA/algos/
6. https://github.com/ncduy0303/Competitive-Programming
"""
prev_text = 'Prev'
next_text = 'Next'
help_text = """
I can help you to find algorithms with links
You can control me sending these commands:
/algorithms - see the full list of algorithms
/search - search the algorithm by some tag
"""
# /donation - donate to support the project
# Add then
welcome_text = """
\U000026a1 *Welcome to CP Algorithms Finder bot* \U000026a1
This bot helps you to find the algorithm fast.
It is useful to find algorithm fast in the contest, or to improve yourself in training.
Write /help to see the useful commands
"""
donation_answer = """
\U0001f495 If you think this project is really helpful you can donate by this link \U0001f495
Link: https://yoomoney.ru/to/4100117611389694
Thank you!
"""