jeremysmitherman/Hoggy — pull request #21 by Fattierob (2014-03-02 15:24:05+00:00)
Title: Added Blast HardCheese bot commands

Added in a few new commands:
!roll -> rolls dice in format d (ie: 2d6 rolls two six-sided die)
!choose -> picks a random thing from a string in the format or or
!fortune -> This needs the fortune program installed (apt-get fortune). Generates a fortune for the user by calling it via subprocess. User can also use !fortune long to have a long one sent to PM

!what/!learn -> Allows the bot to remember things and then spits out what it has learned. For example I could go !learn jers is a pretty cool guy and then the next time somebody does !what is jers the bot would respond "jers: a pretty cool guy(1) " ...plus any other entries that are in the database (limited to 10).

I handled errors differently in my version but having an insult() function. You can keep it or remove it and replace the returns with actually helpful error messages...but I don't know why you would do that