summaryrefslogtreecommitdiff
path: root/__main__.py
blob: 46d2815f0db92201a6edfda847effe0a94a6ae9c (plain)
1
2
3
4
5
6
7
8
9
10
import os.path
from .modules import daemon
from .config import Config

if __name__ == "__main__":
    with open(os.path.join(os.path.dirname(__file__), Config.TOKEN_FILE_NAME)) as f:
        token = f.read().strip()

    d = daemon.Daemon(Config.AGENT_SYMBOL, token)
    d.run()