import json


async def get_all_reminders_from_user(author_ID):
    """Gets all reminders from a user.

    Args:
        author_ID (int): the discord user ID
    Returns:
        A list of all reminders of the specified person.
    """
    reminders = json.load(open('settings/database.json', 'r'))['reminders']

    matches = []

    for i in reminders:
        if i['author'] == author_ID:
            matches.append(i)

    return matches