import logging


def ping(reply, cfg) -> str:
    """
    Replies to the !ping command, and is used as a keep alive check
    :param reply: Message object
    :param cfg: See reply param
    :return: The ping string, which in turn is given to Reddit's reply.reply()
    """
    logging.info(f"Received ping from {reply.author.name}. Pong!")
    return "Pong!"