diff options
author | Botond Hende <nettingman@gmail.com> | 2024-08-19 13:46:32 +0200 |
---|---|---|
committer | Botond Hende <nettingman@gmail.com> | 2024-08-19 13:46:32 +0200 |
commit | 490db4316b3012e689b10f187d6c19042373fef4 (patch) | |
tree | bebc0d59ee26bedfb0f948fc2ea6232dcd8afa35 /__main__.py | |
parent | f888a02ed4a5b715557f679571e3bbb8ad9c0f17 (diff) |
first api call
Diffstat (limited to '__main__.py')
-rw-r--r-- | __main__.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/__main__.py b/__main__.py new file mode 100644 index 0000000..5cba034 --- /dev/null +++ b/__main__.py @@ -0,0 +1,12 @@ +import os.path +from .modules import daemon + +AGENT_SYMBOL = "WAZUL" +TOKEN_FILE_NAME = "sta.token" + +if __name__ == "__main__": + with open(os.path.join(os.path.dirname(__file__), TOKEN_FILE_NAME)) as f: + token = f.read().strip() + + d = daemon.Daemon(AGENT_SYMBOL, token) + d.run() |