This commit is contained in:
Tutur33
2024-04-20 14:29:42 +02:00
parent e354d68504
commit 18e452d82a
4 changed files with 42 additions and 0 deletions
+17
View File
@@ -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.`);
}
};
+17
View File
@@ -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.`);
}
};
+6
View File
@@ -13,6 +13,7 @@
"discord.js": "^14.14.1", "discord.js": "^14.14.1",
"discord.js-selfbot-v13": "^3.1.4", "discord.js-selfbot-v13": "^3.1.4",
"dotenv": "^16.4.5", "dotenv": "^16.4.5",
"ip": "^2.0.1",
"sqlite3": "^5.1.7" "sqlite3": "^5.1.7"
} }
}, },
@@ -931,6 +932,11 @@
"resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
"integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" "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": { "node_modules/ip-address": {
"version": "9.0.5", "version": "9.0.5",
"resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz", "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz",
+2
View File
@@ -17,9 +17,11 @@
}, },
"homepage": "https://github.com/Tutur33/selfbot-discord#readme", "homepage": "https://github.com/Tutur33/selfbot-discord#readme",
"dependencies": { "dependencies": {
"@discordjs/voice": "^0.16.1",
"discord.js": "^14.14.1", "discord.js": "^14.14.1",
"discord.js-selfbot-v13": "^3.1.4", "discord.js-selfbot-v13": "^3.1.4",
"dotenv": "^16.4.5", "dotenv": "^16.4.5",
"ip": "^2.0.1",
"sqlite3": "^5.1.7" "sqlite3": "^5.1.7"
} }
} }