Пишу бота на discord.py, python 3.8.2, вот код:
import discord
from discord.ext import commands
from config import settings
bot = commands.Bot(command_prefix = settings['prefix'])
@bot.command()
async def hi(ctx):
author = ctx.message.author
await ctx.send(f'Привет, {author.mention}!')
bot.run(settings['token'])
когда я запускаю мне пишет SyntaxError: Non-UTF-8 code starting with '\xf2' in file C:\Users\Gleb\Desktop\bot\main.py on line 10, but no encoding declared; see
python.org/dev/peps/pep-0263 for details