def get_commits(bot_input, bot_output): gh = GithubHelper(bot_input, bot_output) team = gh.get_team() team_repos = team.get_repos() random_repo = team_repos[random.randrange(0,3)] start_date = moment.now().add(key='days',amount=-30).date commits = random_repo.get_commits(since=start_date) return commits