diff --git a/bot.py b/bot.py index 51f7433..ca1b94b 100644 --- a/bot.py +++ b/bot.py @@ -143,7 +143,8 @@ async def init_db(self) -> None: f"{os.path.realpath(os.path.dirname(__file__))}/database/database.db" ) as db: with open( - f"{os.path.realpath(os.path.dirname(__file__))}/database/schema.sql" + f"{os.path.realpath(os.path.dirname(__file__))}/database/schema.sql", + encoding = "utf-8" ) as file: await db.executescript(file.read()) await db.commit()