import json

with open('/home/multica/.openclaw/openclaw.json', 'r') as f:
    config = json.load(f)

config.setdefault('plugins', {}).setdefault('entries', {})
config['plugins']['entries']['discord'] = {
    'enabled': True,
    'token': 'MTQ2NzU1ODI2MjQzMjg2MjM3Ng.GAXSOW.NG7kTjKGKcLuHmvuyVpGOiGWCDkXeuPoHRPd7w'
}

with open('/home/multica/.openclaw/openclaw.json', 'w') as f:
    json.dump(config, f, indent=2)

print('Discord plugin configured successfully')
