Quit if the application is already running

This commit is contained in:
DevilXD committed 2022-01-14 15:10:36 +01:00
1 parent b6229163bf
commit fd030e33f6
3 files changed
+19 -5

No files matched your search

+6 -1
View File
@@ -6,6 +6,9 @@ from enum import Enum, auto
from datetime import timedelta
from typing import Any, Optional, Dict, Literal, Callable
from version import __version__
# Typing
JsonType = Dict[str, Any]
TopicProcess = Callable[[int, JsonType], Any]
@@ -32,8 +35,10 @@ PING_INTERVAL = timedelta(minutes=3)
PING_TIMEOUT = timedelta(seconds=10)
ONLINE_DELAY = timedelta(seconds=120)
WATCH_INTERVAL = timedelta(seconds=58.8)
# Tags
# Strings
DROPS_ENABLED_TAG = "c2542d6d-cd10-4532-919b-3d19f30a768b"
WINDOW_TITLE = f"Twitch Drops Miner v{__version__} (by DevilXD)"
# Logging
FORMATTER = logging.Formatter(
"{asctime}.{msecs:03.0f}:\t{levelname:>7}:\t{message}",
style='{',