def get_user(self, username):
if hasattr(self._bot, '<STR_LIT>'):<EOL><INDENT>user = self._bot.user_manager.get_by_username(username)<EOL>if user:<EOL><INDENT>return user<EOL><DEDENT>user = SlackUser.get_user(self._bot.sc, username)<EOL>self._bot.user_manager.set(user)<EOL>return user<EOL><DEDENT>return SlackUser.get_user(self._bot.sc, username)<EOL>
Utility function to query slack for a particular user

:param username: The username of the user to lookup
:return: SlackUser object or None