PagerMaid-Pyro/pagermaid/static.py

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

22 lines
488 B
Python
Raw Normal View History

from typing import Callable, Awaitable, Set, Dict
from datetime import datetime, timezone
from os import getcwd
working_dir = getcwd()
# solve same process
read_context = {}
help_messages = {}
hook_functions: Dict[str, Set[Callable[[], Awaitable[None]]]] = {
"startup": set(),
"shutdown": set(),
"command_pre": set(),
"command_post": set(),
"process_error": set(),
"load_plugins_finished": set(),
}
all_permissions = []
start_time = datetime.now(timezone.utc)