Skip to content

Commit

Permalink
data music to run music
Browse files Browse the repository at this point in the history
  • Loading branch information
Raas Ahsan committed Jan 20, 2019
1 parent b4e605d commit f60f62b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apophis/cmds/music.py
Expand Up @@ -39,7 +39,7 @@ async def play_song(context, message, song_id: int):

path = os.environ.get(
'MUSIC_DATA_DIR',
context['config'].get('music_data_dir', 'data/music')
context['config'].get('music_data_dir', 'run/music')
)
voice.play(FFmpegPCMAudio('{}/{}.mp3'.format(path, song['id'])))
return await message.channel.send(
Expand Down Expand Up @@ -80,7 +80,7 @@ async def fetch_song(context, message, link: str):

path = os.environ.get(
'MUSIC_DATA_DIR',
context['config'].get('music_data_dir', 'data/music')
context['config'].get('music_data_dir', 'run/music')
)
ydl_opts = {
'format': 'bestaudio/best',
Expand Down

0 comments on commit f60f62b

Please sign in to comment.