UNPKG

forgescript

Version:

ForgeScript is a comprehensive package that empowers you to effortlessly interact with Discord's API. It ensures scripting remains easy to learn and consistently effective.

24 lines 802 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const os_1 = require("os"); const structures_1 = require("../structures"); exports.default = new structures_1.NativeFunction({ name: "$networkCardIPs", version: "1.2.0", description: "Returns your network's card ips", unwrap: true, brackets: false, args: [ { name: "separator", description: "The separator to use", rest: false, required: true, type: structures_1.ArgType.String } ], execute(ctx, [sep]) { return this.success(Object.values((0, os_1.networkInterfaces)()).map(x => x?.map(x => x.address).filter(Boolean).join(sep ?? ", ")).join(sep ?? ", ")); } }); //# sourceMappingURL=networkCardIPs.js.map