refractor lib code
This commit is contained in:
@@ -25,6 +25,7 @@ class Audio(commands.Cog):
|
||||
audio = await read_db(member.guild.id, member.id, 'usertracks')
|
||||
from lib.Comands import list_files
|
||||
audio_files = await list_files(f'audio/{member.id}')
|
||||
logging.info(f"state changed to user {member}")
|
||||
f = await list_files()
|
||||
if role is not None and before.channel is None and role in member.roles:
|
||||
track = randrange(0, len(f) - 1, 1)
|
||||
|
||||
Reference in New Issue
Block a user