-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.js
122 lines (107 loc) · 5.05 KB
/
index.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
const Discord = require('discord.js');
const client = new Discord.Client();
const keepAlive = require('./server');
const randomstring = require("randomstring");
const prefix = 'n!';
const amountnitro = 0;
client.on('message', msg => {
let args = msg.content.slice(prefix.length).trim().split(' ');
if (msg.content.startsWith(`${prefix}nitro`)) {
msg.delete()
const exampleEmbed = new Discord.MessageEmbed()
.setColor('#8A2BE2')
.setTitle('-------- Nitro Sent --------')
.setURL('https://discord.gg/5u6wA732X3')
.addFields(
{ name: 'Dm Message ', value: 'I Sent You a 25 Nitro Check Your DMs :thumbsup: (Note: The Nitro Codes Are Not Checked)' },
)
.setTimestamp()
msg.channel.send(exampleEmbed);
msg.author.send("https://discord.gift/" + randomstring.generate(16));
msg.author.send("https://discord.gift/" + randomstring.generate(16));
msg.author.send("https://discord.gift/" + randomstring.generate(16));
msg.author.send("https://discord.gift/" + randomstring.generate(16));
msg.author.send("https://discord.gift/" + randomstring.generate(16));
msg.author.send("https://discord.gift/" + randomstring.generate(16));
msg.author.send("https://discord.gift/" + randomstring.generate(16));
msg.author.send("https://discord.gift/" + randomstring.generate(16));
msg.author.send("https://discord.gift/" + randomstring.generate(16));
msg.author.send("https://discord.gift/" + randomstring.generate(16));
msg.author.send("https://discord.gift/" + randomstring.generate(16));
msg.author.send("https://discord.gift/" + randomstring.generate(16));
msg.author.send("https://discord.gift/" + randomstring.generate(16));
msg.author.send("https://discord.gift/" + randomstring.generate(16));
msg.author.send("https://discord.gift/" + randomstring.generate(16));
msg.author.send("https://discord.gift/" + randomstring.generate(16));
msg.author.send("https://discord.gift/" + randomstring.generate(16));
msg.author.send("https://discord.gift/" + randomstring.generate(16));
msg.author.send("https://discord.gift/" + randomstring.generate(16));
msg.author.send("https://discord.gift/" + randomstring.generate(16));
msg.author.send("https://discord.gift/" + randomstring.generate(16));
msg.author.send("https://discord.gift/" + randomstring.generate(16));
msg.author.send("https://discord.gift/" + randomstring.generate(16));
msg.author.send("https://discord.gift/" + randomstring.generate(16));
msg.author.send("https://discord.gift/" + randomstring.generate(16));
}
if (msg.content.startsWith(`${prefix}invite`)) {
if (!msg.guild.member(client.user).hasPermission(["SEND_MESSAGES"])) return;
msg.delete()
const exampleEmbed = new Discord.MessageEmbed()
.setColor('#8A2BE2')
.setTitle('-------- Invite Nitro Bot V3 --------')
.setURL('https://discord.gg/5u6wA732X3')
.addFields(
{ name: 'Link To Add Your Bot To Your Server - ', value: 'Link: https://discord.com/api/oauth2/authorize?client_id=902881696502935603&permissions=8&scope=bot' },
{ name: 'Note : ', value: 'Make Nitro Bot V3 As SEND_MESSAGES Or It Will Not Work' },
)
.setTimestamp()
msg.channel.send(exampleEmbed);
}
if (msg.content.startsWith(`${prefix}chances`)) {
if (!msg.guild.member(client.user).hasPermission(["SEND_MESSAGES"])) return;
msg.delete()
const exampleEmbed = new Discord.MessageEmbed()
.setColor('#8A2BE2')
.setTitle('-------- Nitro Chances --------')
.setURL('https://discord.gg/5u6wA732X3')
.addFields(
{ name: 'Nitro Classic : ', value: '0.1%' },
{ name: 'Nitro : ', value: '0.0000001%' },
)
.setTimestamp()
msg.channel.send(exampleEmbed);
}
if (msg.content.startsWith(`${prefix}help`)) {
if (!msg.guild.member(client.user).hasPermission(["SEND_MESSAGES"])) return;
msg.delete()
const exampleEmbed = new Discord.MessageEmbed()
.setColor('#8A2BE2')
.setTitle('-------- Nitro Bot V3 Help --------')
.setURL('https://discord.gg/5u6wA732X3')
.addFields(
{ name: '!helpnitro ', value: 'Help Nitro Commands' },
{ name: '!nitro ', value: 'Gen 25 Nitro To Your Dm' },
{ name: '!invitenitro ', value: 'Invite Nitro Bot V3 To Your Server',},
{ name: '!chancesnitro - ', value: 'See The Chances Of Nitro' },
{ name: 'Nitro Bot Made By : ', value: 'Mxnty#0001' },
)
.setTimestamp()
msg.channel.send(exampleEmbed);
}
})
client.on('ready', async () => {
console.log('Nitro Bot V3 Is Online!')
let statuses = [
`NitroGen`,
`dsc.gg/nitrogenerator`
]
setInterval(function () {
let status = statuses[Math.floor(Math.random() * statuses.length)];
client.user.setActivity(status, {
type: "CUSTOM_STATUS",
url: "to n!help"
})
}, 4000)
})
keepAlive();
client.login(process.env.TOKEN)