nope
This commit is contained in:
parent
799bc9d9f9
commit
79b3b9a63b
5
cache/__init__.py
vendored
5
cache/__init__.py
vendored
@ -1,5 +0,0 @@
|
|||||||
# Copyright (C) 2021 By VeezMusicProject
|
|
||||||
|
|
||||||
from cache.admins import admins, get, set
|
|
||||||
|
|
||||||
__all__ = ["admins", "get", "set"]
|
|
17
cache/admins.py
vendored
17
cache/admins.py
vendored
@ -1,17 +0,0 @@
|
|||||||
# Copyright (C) 2021 By VeezMusicProject
|
|
||||||
|
|
||||||
from typing import Dict, List
|
|
||||||
from config import Veez
|
|
||||||
|
|
||||||
|
|
||||||
admins: Dict[int, List[int]] = {}
|
|
||||||
|
|
||||||
|
|
||||||
def set(chat_id: int, admins_: List[int]):
|
|
||||||
admins[chat_id] = admins_
|
|
||||||
|
|
||||||
|
|
||||||
def get(chat_id: int) -> List[int]:
|
|
||||||
if chat_id in admins:
|
|
||||||
return admins[chat_id]
|
|
||||||
return []
|
|
Loading…
Reference in New Issue
Block a user