-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.py
35 lines (30 loc) · 1.11 KB
/
config.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
import os
from dotenv import load_dotenv
load_dotenv(override=True)
## MAIN ##
server_name = "o!d relax server" # yes
port = os.getenv("PORT") # server port
ip = os.getenv("SERVER_IP") # server ip
domain = os.getenv("SERVER_DOMAIN") # server domain
smtp_server = "smtp.gmail.com" # smtp server
smtp_port = 587 # smtp port, 587 for tls, 25 no tls, also 465 can be used
host = "" # for internal use, dont change this
## CRON ##
# 1 = 1 Minute
cron_delay = 10 # used for updating user stats, if your server is big,
# you might want to set it to 60 or higher to
# make sure your server doesnt die lol
## RANKING ##
# - GLOBAL -#
# enable to use pp system
pp = True
pp_leaderboard = True # Shows pp instead of score and sort by pp
# used for beatmap info, unused if pp is disabled
max_pp_value = (
10000 # Max value for a play, if play is worth more than this it will return 0
)
osu_key = os.getenv("OSU_KEY", "")
db_url = os.getenv("DATABASE_URL", "")
discord_hook = os.getenv("DISCORD", "")
# - MAINTENACE -#
disable_submit = False # Does what it says and shows a message to user when trying to play submit a play.