Kawin
Uzman Üye
Bu kod sayesinde botunuzun ne kadar bellek kullandığını vs. Görebilirsiniz.
[komutlar/istatistik.js]
Emojileri kendinize göre değiştirebilirsiniz.
NOT: "if (message.author.id != "682810833721753605")" Kalın olarak işaretlediğim yer sizin ID'niz olmalı yoksa siz göremezsiniz.
NOT: Sadece siz görmek istemiyorsanız: "if (message.author.id != "682810833721753605") return message.channel.sendEmbed(new Discord.RichEmbed().setDescription("**Bunun için iznin yok** <a:carpi:705725882605764650>").setColor('RANDOM'));" Silin.
[komutlar/istatistik.js]
JavaScript:
const Discord = require("discord.js");
const moment = require("moment");
require("moment-duration-format");
exports.run = (client, message) => {
if (message.author.id != "682810833721753605") return message.channel.sendEmbed(new Discord.RichEmbed().setDescription("**Bunun için iznin yok** <a:carpi:705725882605764650>").setColor('RANDOM'));
const duration = moment.duration(client.uptime).format(" D [gün], H [saat], m [dakika], s [saniye]");
const avatarEmbedOther = new Discord.RichEmbed()
.addField(`Road Bot`, `**<a:hype3:705734305732886590> İstatistikler <a:hype3:705734305732886590>
<a:hype:705726231307485194> Bellek kullanımı :: ${(process.memoryUsage().heapUsed / 1024 / 1024).toFixed(2)} MB
<a:hype:705726231307485194> Kullanıcılar :: ${client.guilds.reduce((a, b) => a + b.memberCount, 0).toLocaleString()}
<a:hype:705726231307485194> Sunucular :: ${client.guilds.size.toLocaleString()}
<a:hype:705726231307485194> Kanallar :: ${client.channels.size.toLocaleString()}
<a:hype:705726231307485194> Ping :: ${client.ping}**`)
.setColor('RANDOM')
message.channel.sendEmbed(avatarEmbedOther);
};
exports.conf = {
enabled: true,
guildOnly: false,
aliases: ['bot durum', 'i', 'bi', 'istatistikler', 'kullanımlar', 'botdurum', 'bd', 'istatisik', 'stats', 'stat'],
permLevel: 0
};
exports.help = {
name: 'istatistik',
description: 'Botun istatistik gösterir.',
usage: 'istatistik'
};
Emojileri kendinize göre değiştirebilirsiniz.
NOT: "if (message.author.id != "682810833721753605")" Kalın olarak işaretlediğim yer sizin ID'niz olmalı yoksa siz göremezsiniz.
NOT: Sadece siz görmek istemiyorsanız: "if (message.author.id != "682810833721753605") return message.channel.sendEmbed(new Discord.RichEmbed().setDescription("**Bunun için iznin yok** <a:carpi:705725882605764650>").setColor('RANDOM'));" Silin.
Son düzenleme: