Hello!
I'm currently attempting to build an IRC bot which accept commands with user input in Python.
However, I'm stuck at some point.

It works fine accepting commands without user input such as !hello (then the bot would reply: Hello World).

Now I'm trying to make it accept queries entered by an user.
For example, let's say I want to lookup the definition of a dog on the Urban Dictionary, I would use the API for that. So the command would be !urban dog. (!urban <query>). However I'm not able to make it accept a query, it just doesn't do anything and I believe i need help with this.

Thanks in advance.