听说古腾堡需要新的代码高亮插件了.
真是蛋疼
def status(qq, group): logger.info("[ToSponge] status") source = { 'qq': qq, 'group_id': group, } data = { 'action': 'status', 'source': source, } json_str = json.dumps(data) try: res = get_session().post(g_url, json_str) data = res.json() logger.debug("status resp: %s" % data) except Exception as e: msg = '服务器状态: 可能关闭' utils.send_to_source(source, msg, 'status') logger.warn("[ToSponge] Server closed", e);