title: How do I use a Python Twitch IRC Bot to take chat message parameters?
body: <p>I am fairly new to Python coding and was just wondering if anybody knew of an easy way for my Python Twitch IRC Bot using sockets can receive and handle message command parameters. For example, if I were to set up song requests, and a user in the chat types in "!songrequest URL," how would I be able to recognize the URL and process it? (I already have a method of retrieving the YouTube video title from the link, by the way). In simplest form, what I'm looking for is to take arguments from a chat message command and put it into a separate variable.
  If it helps, here is how I retrieve commands from the Twitch chat:</p>
  
  <pre><code>s = openSocket()
  
  if "!command" in message:
  
  sendMessage(s, "Message")
  break
  </code></pre>
  
  <p>Thanks in advance!</p>