Forcage encodage utf-8
This commit is contained in:
parent
35b3f28ed1
commit
867a9ef36d
1 changed files with 7 additions and 0 deletions
7
bot.py
7
bot.py
|
|
@ -1,5 +1,7 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
import discord
|
||||
import os
|
||||
import sys
|
||||
from discord.ext import commands
|
||||
from config import DISCORD_TOKEN
|
||||
|
||||
|
|
@ -9,6 +11,11 @@ from utils.MercyManager_class import MercyManager
|
|||
from utils.pb_handler import set_managers
|
||||
from utils.leaderboard_handler import set_db_manager
|
||||
|
||||
# Force UTF-8
|
||||
|
||||
os.environ["PYTHONIOENCODING"] = "utf-8"
|
||||
sys.stdout.reconfigure(encoding='utf-8')
|
||||
|
||||
# Définir les intents
|
||||
intents = discord.Intents.default()
|
||||
intents.message_content = True
|
||||
|
|
|
|||
Loading…
Reference in a new issue