PagerMaid-Pyro/pagermaid/services/__init__.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
342 B
Python
Raw Permalink 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)