-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathi.js
52 lines (49 loc) · 1.21 KB
/
i.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
const {
Discord,
MessageEmbed,
Permissions,
ButtonBuilder,
ButtonStyle,
ActionRowBuilder,
EmbedBuilder,
Colors,
version,
} = require("discord.js");
const moment = require("moment");
require("moment-duration-format");
exports.run = async (client, message, args) => {
const Uptime = moment
.duration(client.uptime)
.format(" D [gün], H [saat], m [dakika], s [saniye]");
const embed = new EmbedBuilder()
.setAuthor({
name: "Bot İstatistik",
iconURL: client.user.avatarURL(),
})
.setDescription(
`
📊 Toplam Kullanıcı: **${client.users.cache.size}**
📊 Toplam Sunucu: **${client.guilds.cache.size}**
📊 Toplam Kanal: **${client.channels.cache.size}**
📊 Hafıza Kullanımı: **${(
process.memoryUsage().heapUsed /
1024 /
512
).toFixed(2)}Mb**
📊 Uptime: **${Uptime}**
📊 NodeJS Sürümü: **${process.version}**
📊 DiscordJS Sürümü: **${version}**`
)
.setFooter({
text: `Bot İstatistik`,
iconURL: message.member.displayAvatarURL({ dynamic: true }),
})
.setColor(Colors.Blurple);
message.reply({ embeds: [embed] });
};
exports.conf = {
aliases: []
};
exports.help = {
name: "istatistik",
};