The first and second part of the code is for other people to use.
The third part is for you to use. To use it YOU type !pie <someone\'s nickname> and you throw a pie at them.
And also im not that good of a scriptor and im still learning how to use more complex commands. So when i get better they will start looking more clean. :P