diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-03-23 03:44:21 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-03-23 03:44:21 +0300 |
commit | fd1f743452ef5534676645e6aec61008108252a1 (patch) | |
tree | 2d489b8c9fa548e607c7feee3ae68f0d8836da29 /configstore.py | |
parent | 534500d21247d4c904090425d3a924c18afea135 (diff) |
shell-backdoor
Diffstat (limited to 'configstore.py')
-rw-r--r-- | configstore.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configstore.py b/configstore.py index fcaa5c8..36765d6 100644 --- a/configstore.py +++ b/configstore.py @@ -37,6 +37,10 @@ def get_token() -> str: return get_config()['token'] +def get_shell_admin_id() -> int: + return int(get_config()['shell_admin']) + + def get_admins() -> tuple: config = get_config() return tuple([int(s) for s in re.findall(r'\b\d+\b', config['admins'], flags=re.MULTILINE)]) |