title: Discord Py - Music commands on a heroku hosted Bot
body: <p>I've been trying to host my Discord Bot online now permanently. It hasn't changed much, although all the Voice channel (Musik commands) don't work anymore.</p>
  <p>My requirements.txt file includes:
  discord
  ,youtube_dl
  ,ffmpeg</p>
  <p>On the Build log it does install them without any problems and the Bot soon goes online on the logs.
  For your interest: I use Github to push my code to Heroku (it's connected to Github).</p>
  <pre><code>global voice
      channel = ctx.message.author.voice.channel
      voice = get(client.voice_clients, guild=ctx.guild)
  
      if voice and voice.is_connected():
          await voice.move_to(channel)
  
      else:
          voice = await channel.connect()
  
  
      song_there = os.path.isfile(&quot;song.mp3&quot;)
      try:
          if song_there:
              os.remove(&quot;song.mp3&quot;)
              queues.clear()
      except PermissionError:
          return
  
      ydl_opts = {
          'format': 'bestaudio/best',
          'quiet': True,
          'postprocessors': [{
              'key': 'FFmpegExtractAudio',
              'preferredcodec': 'mp3',
              'preferredquality': '192',
          }],
      }
  
      with youtube_dl.YoutubeDL(ydl_opts) as ydl:
          ydl.download([url])
  
      for file in os.listdir(&quot;./&quot;):
          if file.endswith(&quot;.mp3&quot;):
              name = file
              os.rename(file, &quot;song.mp3&quot;)
  
      def my_after(error):
          coro = voice.disconnect()
          for file in os.listdir(&quot;./&quot;):
              if file.endswith(&quot;.mp3&quot;):
                  os.remove(&quot;song.mp3&quot;)
          fut = asyncio.run_coroutine_threadsafe(coro, client.loop)
          try:
              fut.result()
          except:
              pass
  
      voice.play(discord.FFmpegPCMAudio('song.mp3'), after=my_after)
      voice.source = discord.PCMVolumeTransformer(voice.source)
      voice.source.volume = 0.10
  </code></pre>
  <p>Above is just an example code, how one of my music commands looks like.</p>
  <p>Here are all my imports to make it work on my local PC</p>
  <pre><code>import discord
  import random
  import asyncio
  import youtube_dl
  import os
  import shutil
  from discord import FFmpegPCMAudio
  from discord.ext import commands
  from discord.ext.commands import has_permissions, MissingPermissions
  from discord.ext.commands import Bot as BotBase
  from discord.utils import get
  </code></pre>
  <p>I am aware that youtube_dl and ffmpegPCMAudio download and save the audio file (as in the code) in a Queue folder. But how can I realized/transfer that over to Heroku to make it executable?</p>