From 0c1647666852ca172f20271845cf3079f27ae24a Mon Sep 17 00:00:00 2001 From: nick-haoran <33177696+nick-haoran@users.noreply.github.com> Date: Tue, 30 Aug 2022 17:44:56 +0800 Subject: [PATCH] fix helpmsg join command --- config.tmp.json | 1 - core.py | 3 +-- status_manage.py | 14 +------------- 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/config.tmp.json b/config.tmp.json index e057d51..88c57cd 100644 --- a/config.tmp.json +++ b/config.tmp.json @@ -1,6 +1,5 @@ { "token1": "1/MTExNDc=/abcbcbcbcbcbcbcbc==", - "join_command1": "", "default_platform1": "网易", "q_id": "", "n_phone": "", diff --git a/core.py b/core.py index bf4c3bc..38861e7 100644 --- a/core.py +++ b/core.py @@ -79,7 +79,6 @@ def run(): logger.addHandler(file_handler) logger.addHandler(stream_handler) - join_command = status_manage.custom_join_command(config, botid, logger) default_platform = status_manage.custom_preferred_platform( config, botid, logger) @@ -830,7 +829,7 @@ async def prtlist(msg: Message): @bot.command(name="帮助") async def help(msg: Message): await msg.ctx.channel.send( - status_manage.get_helpcm(join_command, default_platform)) + status_manage.get_helpcm(default_platform)) @bot.command(name="状态") async def status(msg: Message): diff --git a/status_manage.py b/status_manage.py index 94ef8f0..bbf5955 100644 --- a/status_manage.py +++ b/status_manage.py @@ -136,7 +136,7 @@ def get_netease_headers(netease_cookie: str) -> dict: return headers -def get_helpcm(join_command: str, default_platform: str) -> list: +def get_helpcm(default_platform: str) -> list: helpcm = [{ "type": "card", @@ -152,18 +152,6 @@ def get_helpcm(join_command: str, default_platform: str) -> list: } }, { "type": "divider" - }, { - "type": "section", - "text": { - "type": "kmarkdown", - "content": "**0. " + join_command + "**" - } - }, { - "type": "section", - "text": { - "type": "kmarkdown", - "content": "功能: 让机器人进到你在的语音频道" - } }, { "type": "section", "text": {