title: Discord.py API Bot: 2 arguments in function not working
body: <p>I have written a function called spam for my Discord bot using the discord.py API which should take an argument of msg and amount.</p>
  
  <p>msg is just a string and amount is an integer (the amount of times to spam the msg string)</p>
  
  <p>For some reason my bot only seems to be picking up on the msg argument not the amount</p>
  
  <p>This is my code so far:</p>
  
  <pre><code>@bot.command(pass_context = True)
  async def spam(ctx, *, msg, amount):
  for x in range(0, amount):
      await bot.say(msg)
  </code></pre>
  
  <p>This code returns the error:</p>
  
  <pre><code>TypeError: spam() missing 1 required keyword-only argument: 'amount'
  </code></pre>
  
  <p>Any help on how to have 2 arguments would be greatly appreciated</p>