dns.lookup hacking
This commit is contained in:
parent
7866f93f1b
commit
b0c2c0d39b
1 changed files with 8 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
const {Client, Collection, Channel, Permission} = require("@projectdysnomia/dysnomia");
|
const {Client, Collection, Channel, Permission} = require("@projectdysnomia/dysnomia");
|
||||||
const fs = require("node:fs");
|
const fs = require("node:fs");
|
||||||
const {resolve} = require("node:path");
|
const {resolve} = require("node:path");
|
||||||
|
const dns = require("node:dns");
|
||||||
const sqlite3 = require("sqlite3");
|
const sqlite3 = require("sqlite3");
|
||||||
const {instead, before} = require("@marshift/strawberry");
|
const {instead, before} = require("@marshift/strawberry");
|
||||||
|
|
||||||
|
@ -252,6 +253,13 @@ instead(bot.shards, "spawn", function (args, orig) {
|
||||||
return ret;
|
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`;
|
process.title = `HiddenPhox`;
|
||||||
|
|
||||||
bot.connect();
|
bot.connect();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue