From b411beae45bb8b8aa7fb6e05ba6039b8f6ebb839 Mon Sep 17 00:00:00 2001 From: Botond Hende Date: Tue, 20 Aug 2024 11:59:57 +0200 Subject: moved config data to config.py --- __main__.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to '__main__.py') diff --git a/__main__.py b/__main__.py index 5cba034..46d2815 100644 --- a/__main__.py +++ b/__main__.py @@ -1,12 +1,10 @@ import os.path from .modules import daemon - -AGENT_SYMBOL = "WAZUL" -TOKEN_FILE_NAME = "sta.token" +from .config import Config if __name__ == "__main__": - with open(os.path.join(os.path.dirname(__file__), TOKEN_FILE_NAME)) as f: + with open(os.path.join(os.path.dirname(__file__), Config.TOKEN_FILE_NAME)) as f: token = f.read().strip() - d = daemon.Daemon(AGENT_SYMBOL, token) + d = daemon.Daemon(Config.AGENT_SYMBOL, token) d.run() -- cgit v1.2.3-70-g09d2