LearnProgramming/LPMCBot — pull request #27 by Jonas-R (2012-07-22 20:58:15+00:00)
Title: Slight change to the insult part of parsemsg

Hi,

I refactored the insult part to use random.choice() instead of drawing a random integer index, because thats much cleaner in my opinion. Additionally, random.seed() does not need to be called as it is already initialized with the system time when random is imported.
source: http://docs.python.org/library/random.html#random.seed

Then I added a new insult just for kicks ;)

I also think it would be sensible refactor the subparts of parsemsg like !insult !rps into their own methods and I would be glad to do so if you agree.

Jonas