PagerMaid-Pyro/pagermaid/services/__init__.py

20 lines
342 B
Python
Raw Normal View History

from pagermaid.dependence import sqlite, scheduler, client
from ._bot import bot
__all__ = [
"bot",
"sqlite",
"client",
"scheduler",
]
def get(name: str):
2023-03-12 03:56:01 +00:00
data = {
"Client": bot,
"SqliteDict": sqlite,
"AsyncIOScheduler": scheduler,
"AsyncClient": client,
}
return data.get(name)