-
Notifications
You must be signed in to change notification settings - Fork 9
/
constants.py
83 lines (63 loc) · 1.77 KB
/
constants.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
73
74
75
76
77
78
79
80
81
82
83
from enum import Enum
import discord
class Period(Enum):
DAY = "day"
WEEK = "week"
MONTH = "month"
ALLTIME = "alltime"
class DifficultyScore(Enum):
EASY = 1
MEDIUM = 3
HARD = 7
class Difficulty(Enum):
EASY = 1
MEDIUM = 2
HARD = 3
RANDOM = 4
class RankEmoji(Enum):
FIRST = "🥇"
SECOND = "🥈"
THIRD = "🥉"
class Language(Enum):
PYTHON3 = "python"
JAVA = "java"
CPP = "c++"
C = "c"
CSHARP = "c#"
JAVASCRIPT = "javascript"
GO = "go"
KOTLIN = "kotlin"
RUBY = "ruby"
SWIFT = "swift"
RUST = "rust"
SCALA = "scala"
TYPESCRIPT = "typescript"
DART = "dart"
class StatsCardExtensions(Enum):
ACTIVITY = "activity"
HEATMAP = "heatmap"
CONTEST = "contest"
NONE = "none"
class NotificationOptions(Enum):
MAINTENANCE = "maintenance"
DAILY_QUESTION = "daily_question"
WINNERS = "winners"
GLOBAL_LEADERBOARD_ID = 0
MILESTONE_ROLES = {
1: ("Novice (1 pt)", discord.Colour.dark_grey()),
100: ("Apprentice (100 pts)", discord.Colour.green()),
300: ("Capable (300 pts)", discord.Colour.blue()),
500: ("Competent (500 pts)", discord.Colour.dark_blue()),
1000: ("Advanced (1000 pts)", discord.Colour.orange()),
2000: ("Expert (2000 pts)", discord.Colour.red()),
4000: ("Master (4000 pts)", discord.Colour.purple()),
8000: ("Legend (6000 pts)", discord.Colour.gold()),
}
STREAK_ROLES = {
3: ("Streak Initiate (3 Days)", discord.Colour.green()),
7: ("Streak Pursuer (7 Days)", discord.Colour.blue()),
14: ("Streak Adventurer (14 Days)", discord.Colour.red()),
30: ("Streak Dominator (30 Days)", discord.Colour.purple()),
90: ("Streak Legend (90 Days)", discord.Colour.gold()),
}
VERIFIED_ROLE = "CodeGrind Verified"