APRK01 commited on
Commit Β·
65bf94f
1
Parent(s): 9ba9cec
Fix: Force Google DNS to bypass HF resolution issues
Browse files12345require('dotenv').config();const {Client,GatewayIntentBits,1234567891011121314require('dotenv').config();// Fix for Hugging Face DNS resolutionconst dns = require('node:dns');try {dns.setServers(['8.8.8.8', '8.8.4.4', '1.1.1.1']);console.log(' π‘ DNS: Using Google/Cloudflare resolvers (8.8.8.8)');} catch (e) {console.log(' β οΈ DNS: Could not set custom resolvers, using system default.');}const {Client,GatewayIntentBits,
src/index.js+9