Stuff for RPG

rpgbot and beforeLogOut events.
Merge pull request #11 from IceKirby/patch-1

Stuff for RPG