-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.py
More file actions
29 lines (23 loc) · 730 Bytes
/
Copy pathconstants.py
File metadata and controls
29 lines (23 loc) · 730 Bytes
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
import subprocess
from datetime import datetime, timezone
import lilypond
# noinspection SpellCheckingInspection
RENYHP = 133748469
DEV_NULL = -1001483993984
LILYSETTINGS_PATH = "lilysettings.ly"
USER_FILES_DIR = "/tmp/LilyPondBot"
ERROR_FILES_DIR = "error_files"
VERSION_NUMBER = "2.1"
COMMIT_HASH = subprocess.check_output(["git", "rev-parse", "--short", "HEAD"]).decode("utf-8")[:-1]
LILY_VERSION = lilypond.lilypond_process(["-v"])[0].splitlines()[0]
START_TIME = datetime.now(timezone.utc)
MONITOR = """\
LilyPondBot v{} @{}
GNU LilyPond {}
Start time: {}
Latest message received: {}
Users seen in this session: {}
Messages received: {}
Inline queries received: {}
Commands processed: {}
Successful compilations: {}"""