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():
    try:
        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)

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

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

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

    await bot.process_commands(message)