def _process_event(self, event):
if event.get('<STR_LIT:user>'):<EOL><INDENT>event.user = self.lookup_user(event.get('<STR_LIT:user>'))<EOL><DEDENT>if event.get('<STR_LIT>'):<EOL><INDENT>event.channel = self.lookup_channel(event.get('<STR_LIT>'))<EOL><DEDENT>if self.user.id in event.mentions:<EOL><INDENT>event.mentions_me = True<EOL><DEDENT>event.mentions = [ self.lookup_user(uid) for uid in event.mentions ]<EOL>return event<EOL>
Extend event object with User and Channel objects