most commands moved into cogs
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user