most commands moved into cogs

This commit is contained in:
2022-09-03 19:49:38 +03:00
parent 0dd3fc3c40
commit 2873df67c7
7 changed files with 45 additions and 38 deletions

View File

@@ -41,8 +41,8 @@ class Audio(commands.Cog, name='Audio'):
def_audio_ls = await list_files()
if def_audio_db or audio_db is not None:
if def_audio_db is None: def_audio_db = []
if audio_db is None: audio_db = []
if not def_audio_db: def_audio_db = []
if not audio_db: audio_db = []
logger.info(f'Play audio from DB')
full_audio = def_audio_db + audio_db
await play_audio(f'audio/{random.choice(full_audio)}', self.bot, after.channel)