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