def initialize(update_everyone=False):
"""Used to initalize resources - both the 'shelf' store and slack client - and return them.
Args:
update_everyone (Optional[bool]): If True, updates all users in the EMAIL_DOMAIN
from slack. Defaults to False.
Returns:
store: A shelve instance
sc: A SlackClient instance
"""
store = open_store()
sc = get_slack_client()
if update_everyone:
update_everyone_from_slack(store, sc)
return store, sc
评论列表
文章目录