Json deployment dm

Question: Is there a way to make it how if theres a change to a json file it dms me on discord with the changes? I used something like this before which dmed me the Json every 30 mins but since this bot is a economy I need updates everytime theres changes.

Repl link: https://replit.com/@chaosok/IdenticalLavishIntroductory#main.py

def load_accounts():
        with open('accounts.json', 'r') as f:
            return json.load(f)
    except FileNotFoundError:
        return {}

def save_accounts(accounts):
    with open('accounts.json', 'w') as f:
        json.dump(accounts, f, indent=4)

async def on_ready():
    print(f'{bot.user.name} is online')

async def on_message(message):
    if message.author == bot.user:

    if isinstance(message.channel, discord.DMChannel):

    await bot.process_commands(message)