1const arr = [1, 2, 3, 4, 5, 6, 9, 7, 8, 9, 10];
2arr.reverse();
3const used = process.memoryUsage().heapUsed / 1024 / 1024;
4console.log(`The script uses approximately ${Math.round(used * 100) / 100} MB`);
1const Discord = require('discord.js');
2const client = new Discord.Client();
3const config = require("./config.json")
4
5
6
7
8client.on("ready", () => {
9 console.log(`Bot Foi Iniciado, com ${client.users.cache.size} usuários, em ${client.channels.cache.size} canais, em ${client.guilds.cache.size} servidores.`);
10 client.user.setActivity(`Dinheiro Na Putaria`);
11 client.user.setUsername('Hidrz')
12});
13const prefix = "!";
14
15client.on("message", async message => {
16
17 if (message.author.bot) return;
18 if (message.channel.type == 'dm') return;
19 if (!message.guild) return;
20 if (!message.content.toLowerCase().startsWith(config.prefix.toLowerCase())) return;
21 if (message.content.startsWith(`<@!${client.user.id}>`) || message.content.startsWith(`<@${client.user.id}>`)) return;
22
23 const args = message.content
24 .trim().slice(config.prefix.length)
25 .split(/ +/g);
26 const command = args.shift().toLowerCase();
27
28 try {
29 const commandFile = require(`./commands/${command}.js`)
30 commandFile.run(client, message, args);
31 } catch (err) {
32 console.error('Erro:' + err);
33 }
34
35
36
37
38
39});
40
41
42
43
44client.login(config.token)
45