From 18e452d82a74506c6c6869050d2686eec64b32a5 Mon Sep 17 00:00:00 2001 From: Tutur33 Date: Sat, 20 Apr 2024 14:29:42 +0200 Subject: [PATCH] update --- commands/utils/myhostname.ts | 17 +++++++++++++++++ commands/utils/myip.ts | 17 +++++++++++++++++ package-lock.json | 6 ++++++ package.json | 2 ++ 4 files changed, 42 insertions(+) create mode 100644 commands/utils/myhostname.ts create mode 100644 commands/utils/myip.ts diff --git a/commands/utils/myhostname.ts b/commands/utils/myhostname.ts new file mode 100644 index 0000000..9c76b45 --- /dev/null +++ b/commands/utils/myhostname.ts @@ -0,0 +1,17 @@ +import { Message, Client } from 'discord.js'; +const os = require('os'); + +module.exports = { + aliases: [], + description: 'Montre ton hostename dans la console', + emote: '⏱️', + utilisation: '', + + async execute(message: Message, args: string[], client: Client) { + message.delete(); + const hostname = os.hostname(); + console.log(`Le hostname est : ${hostname}`); + + message.channel.send(`Le hostname a été affiché dans la console.`); + } +}; \ No newline at end of file diff --git a/commands/utils/myip.ts b/commands/utils/myip.ts new file mode 100644 index 0000000..47c7871 --- /dev/null +++ b/commands/utils/myip.ts @@ -0,0 +1,17 @@ +import { Message, Client } from 'discord.js'; +const ip = require('ip'); + +module.exports = { + aliases: [], + description: 'Montre ton ip dans la console', + emote: '⏱️', + utilisation: '', + + async execute(message: Message, args: string[], client: Client) { + message.delete(); + const ipAddress = ip.address(); + console.log(`L'adresse IP est : ${ipAddress}`); + + message.channel.send(`L'adresse IP a été affichée dans la console.`); + } +}; \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 918ccf9..6f992c1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,6 +13,7 @@ "discord.js": "^14.14.1", "discord.js-selfbot-v13": "^3.1.4", "dotenv": "^16.4.5", + "ip": "^2.0.1", "sqlite3": "^5.1.7" } }, @@ -931,6 +932,11 @@ "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" }, + "node_modules/ip": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.1.tgz", + "integrity": "sha512-lJUL9imLTNi1ZfXT+DU6rBBdbiKGBuay9B6xGSPVjUeQwaH1RIGqef8RZkUtHioLmSNpPR5M4HVKJGm1j8FWVQ==" + }, "node_modules/ip-address": { "version": "9.0.5", "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz", diff --git a/package.json b/package.json index bb03d50..7bc1440 100644 --- a/package.json +++ b/package.json @@ -17,9 +17,11 @@ }, "homepage": "https://github.com/Tutur33/selfbot-discord#readme", "dependencies": { + "@discordjs/voice": "^0.16.1", "discord.js": "^14.14.1", "discord.js-selfbot-v13": "^3.1.4", "dotenv": "^16.4.5", + "ip": "^2.0.1", "sqlite3": "^5.1.7" } }