keepalive/discord_notifications.py
async def on_service_error(
    config: Config, service: Service, session: aiohttp.ClientSession, output: str
) -> None:
    """
    Notify discord webhook when there is an error in a service.
    """
    await send_discord_message(
        config,
        session,
        textwrap.dedent(
            f"""
            :no_entry_sign: **__{service['name']}__** :no_entry_sign:

            Something is wrong: ```
            {output}
            ```
            {service['check']['url']}
            """
        ),
    )

    Notify discord webhook when there is an error in a service.
    
Notify discord webhook when there is an error in a service.
Notify discord webhook when there is an error in a service .
async def on_service_error(
    config: Config, service: Service, session: aiohttp.ClientSession, output: str
) -> None:
    await send_discord_message(
        config,
        session,
        textwrap.dedent(
            f"""
            :no_entry_sign: **__{service['name']}__** :no_entry_sign:
            Something is wrong: ```
            {output}
            ```
            {service['check']['url']}
            """
        ),
    )
async def on_service_error ( config : Config , service : Service , session : aiohttp . ClientSession , output : str ) -> None : await send_discord_message ( config , session , textwrap . dedent ( f"""
            :no_entry_sign: **__{service['name']}__** :no_entry_sign:

            Something is wrong: ```
            {output}
            ```
            {service['check']['url']}
            """ ) , )
Notify discord webhook when there is an error in a service.
Notify discord webhook when there is an error in a service .
"""
    Notify discord webhook when there is an error in a service.
    """
config
Config
service
Service
session
aiohttp.ClientSession
output
str