The trust_ping method needs updating.
Currently you must pass a msg value into this function. But this is actually an optional comment.
Also it is sent as {"content": msg} rather than {"comment": msg}. Suggest change msg to comment and make an optional argument.