Skip to content

Commit

Permalink
fix helpmsg join command
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-haoran committed Aug 30, 2022
1 parent d1d42b9 commit 0c16476
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
1 change: 0 additions & 1 deletion config.tmp.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"token1": "1/MTExNDc=/abcbcbcbcbcbcbcbc==",
"join_command1": "",
"default_platform1": "网易",
"q_id": "",
"n_phone": "",
Expand Down
3 changes: 1 addition & 2 deletions core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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):
Expand Down
14 changes: 1 addition & 13 deletions status_manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": {
Expand Down

0 comments on commit 0c16476

Please sign in to comment.