7from io import BytesIO
8from typing import List, Union
9
10import discord 11from data.services.guild_service import guild_service
12from data.services.user_service import user_service
13from utils.config import cfg
1525 if state:
1526 return
1527 # Creates temporary folder for storing the audio file
1528 import os1529 if not os.path.isdir("./tempMusic"):
1530 os.mkdir("./tempMusic")
1531 if not os.path.isdir("./tempMusic/" + str(ctx.guild.id)):
4from discord.ext import commands
5from discord.ext.commands import Command, Group
6
7from setuptools import Command 8from data.services.guild_service import guild_service
9from utils import cfg, GIRContext, transform_context
10from utils.framework import whisper, gatekeeper
A module or an import name is reimported multiple times. This can be confusing and should be fixed. Please refer to the occurrence message to see the reimported name and the line number where it was imported for the first time.
import os
from os import path
from sys import path
import os
Here, the import name path
from the module os
has been imported twice.
import os
from os import path