Skip to content

Commit

Permalink
fix help
Browse files Browse the repository at this point in the history
  • Loading branch information
DoroWolf committed Aug 1, 2024
1 parent 19e9c1d commit 13aebea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/core/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,15 +357,14 @@ async def bot_help(msg: Bot.MessageSession):
devs_msg = '\n' + msg.locale.t("core.message.help.author.type1") + devs
else:
devs_msg = ''
wiki_msg = ''
if module_.doc:
if Config('help_page_url', cfg_type=str):
wiki_msg = '\n' + msg.locale.t("core.message.help.helpdoc.address",
url=Config('help_page_url', cfg_type=str).replace('${module}', help_name))
elif Config('help_url', cfg_type=str):
wiki_msg = '\n' + msg.locale.t("core.message.help.helpdoc.address",
url=(CFG.get_url('help_url') + help_name))
else:
wiki_msg = ''
if len(doc) > 500 and not msg.parsed_msg.get('--legacy', False) and msg.Feature.image:
try:
tables = [ImageTable([[doc, '\n'.join(malias), devs]],
Expand Down

0 comments on commit 13aebea

Please sign in to comment.