utils.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:bagelbot 作者: statmuse 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号