import json
import asyncio
from slack_today_i_did.bot_file import TodayIDidBot
from slack_today_i_did.bot_repl import ReplBot
from slack_today_i_did.our_repo import ElmRepo
import os


def setup():
    os.makedirs('reports', exist_ok=True)
    os.makedirs('repos', exist_ok=True)

    with open('priv.json') as f:
        data = json.load(f)

    github_data = data['github']
    repo = ElmRepo(github_data['folder'], github_data['token'], github_data['org'], github_data['repo'])

    return TodayIDidBot(data['token'], rollbar_token=data['rollbar-token'], elm_repo=repo)

def setup_cli():
    os.makedirs('reports', exist_ok=True)
    os.makedirs('repos', exist_ok=True)

    return ReplBot('')

def main():
    client = setup_cli()

    loop = asyncio.get_event_loop()
    loop.run_until_complete(client.main_loop())


if __name__ == '__main__':
    main()

@@ -675,25 +675,289 @@
     
-return ReplBot(''
+with open('priv.json') as f:%0A        data = json.load(f)%0A%0A    github_data = data%5B'github'%5D%0A    repo = ElmRepo(github_data%5B'folder'%5D, github_data%5B'token'%5D, github_data%5B'org'%5D, github_data%5B'repo'%5D)%0A%0A    return ReplBot(data%5B'token'%5D, rollbar_token=data%5B'rollbar-token'%5D, elm_repo=repo
 )%0A%0Ad

load from priv with repl too