소스 검색

Fix (thx taruu)

txlyre 11 달 전
부모
커밋
a31388610a
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      commands.py

+ 2 - 1
commands.py

@@ -418,7 +418,8 @@ async def run_handler(bot, event, command):
         ) as resp:
           text = await resp.read()
           text = text.decode('UTF-8')
-
+          if text[:3] == '```' and text[-3:] == '```':
+            text = text[3:-3]
           await event.reply(f'Доступные языки:\n`{text}`')
       except:
         await event.reply('Произошла ошибка при попытке обращения к API… :(')