Я просто создаю бота Discord с python3
@client.event
async def on_message(message):
#if bot ignore
if message.author.bot:
return None
if message.content.startswith('!meal'):
with open('menu.json') as json_file:
data = json.load(json_file)
channel = message.channel
await channel.send('This is meal info!')
await channel.send(data())
, но я получил
UnicodeDecodeError: 'cp949' codec can't decode byte 0xeb in position 24: illegal multibyte sequence
эту ошибку .. как я могу открыть этот json файл автоматически?