From b0c2c0d39ba252b8398f0127c5aa5f649940d518 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Thu, 14 Aug 2025 16:57:06 -0600 Subject: [PATCH] dns.lookup hacking --- src/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/index.js b/src/index.js index ca9b1a8..d8b7b80 100644 --- a/src/index.js +++ b/src/index.js @@ -1,6 +1,7 @@ const {Client, Collection, Channel, Permission} = require("@projectdysnomia/dysnomia"); const fs = require("node:fs"); const {resolve} = require("node:path"); +const dns = require("node:dns"); const sqlite3 = require("sqlite3"); const {instead, before} = require("@marshift/strawberry"); @@ -252,6 +253,13 @@ instead(bot.shards, "spawn", function (args, orig) { return ret; }); +before(dns, "lookup", (args) => { + if (args[0].includes(".discord.media")) { + if (args[1] == null) args[1] = {}; + args[1].family = 6; + } +}); + process.title = `HiddenPhox`; bot.connect();