-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathbot.js
324 lines (280 loc) · 12.7 KB
/
bot.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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
/**
* Luca - The best bot you'll need for managing and informing members of the server
* © Discord Bot List 2k19
*
* This bot contains all the features you'd ever want from a Discord bot and it's fully open source and free!!
* Clone and host it yourself and add it to discordbots.org or just invite the bot to your server because I am hosting this in Heroku 24/7!
* https://discordbots.org/bot/264811613708746752
*/
let bot = require("discord.js");
var Discord = new bot.Client();
const request = require('snekfetch');
function genRandString(length=1) {
let result = "";
for (let i=0;i<length;i++) {
result+=String.fromCharCode(Math.floor(Math.random()*93+33))
}
return result;
}
console.log('My super secret token OwO', genRandString(10000)); // what is wrong with me?
// ThIs EvEnT iS vErY ImPoRtAnT bEcAuSe At ThIs MoMeNt bOt St aRtS ReCeIvEinG
/* eVeRyThInG fRoM tHiS cOrD */
Discord.on('ready', () => {
console.log(`Logged in as ${Discord.user.tag}!`);
});
Discord.on( 'guildMemberAdd' , function (member) {
for (var i = 0; i < 10; i++) {
member
.client
.guilds
.get(member.guild.id)
.members
.get(member.id)
.send('Welcome in ' + member.guild.name + '!');
}
});
Discord.on('message', function (message) {
if (message.content === 'ping' || message.content === '!ping') {
return message.reply('Pong!');
}
});
// Cyber28 was here
Discord.on('message', function (message) {
if (message.content === '@everyone') {
return message.reply('@everyone ping ping @everyone')
}
});
Discord.on('message', function (message) {
if (message.content === 'hi') {
return message.reply('Hello!');
}
});
Discord.on('message', function (message) {
const cat = request.get('https://aws.random.cat/meow');
if(message.content === '!cat') {
cat.then(r => message.reply(r.body.file));
}
});
Discord.on('message', function (message) {
if (message.content === 'sa') {
return message.reply('Aleyküm selam.');
}
});
Discord.on('message', function (message) {
if (message.content === '!help') {
return message.author.send('Commands: `!help`, `!avatar`, `!about`, `!thonk`, `!cat`, `!ping`, `!8ball`, `!roll`, `!eval`, `!say`, `!randomcat`');
}
} );
Discord.on('message', function (message) {
if (message.content.startsWith('!8ball')) {
const replies = ["It is certain",
"It is decidedly so",
"Without a doubt",
"Yes, definitely",
"You may rely on it",
"As I see it, yes",
"Most likely",
"Outlook good",
"Yes",
"Signs point to yes",
"Reply hazy try again",
"Ask again later",
"Better not tell you now",
"Cannot predict now",
"Concentrate and ask again",
"Don't count on it",
"My reply is no",
"My sources say no",
"Outlook not so good",
"Very doubtful"];
message.replytext = Math.floor((Math.random() * replies.length) + 0);
return message.reply(replies[message.replytext]);
}
});
Discord.on('message', function (message) {
if (message.content.split('').join('') === '!roll') {
return message.reply(`U got a ${Math.floor((Math.random() * 6) + 1)}`);
}
});
Discord.on('message', function (message) {
if (message.content.startsWith('!')) {
return message.reply('Unknown command!');
}
});
Discord.on('message', function (message) {
if (message.content === '!thonk') {
Discord.users.forEach(g => {
g.send("thonk")
})
}
});
Discord.on('message', function(message) {
if (msg.content === '!about') {
return message.reply('This is the best bot on planet. Pls upvote');
}
});
Discord.on('message', function (message) {
const randomNumber = Math.random();
if (randomNumber < 0.05) {
return message.reply(`LEVEL UP! YOU ARE NOW LEVEL **${Math.floor((Math.random() * 21) + 2)}**`);
}
});
Discord.on('message', function(message) {
if (message.content.startsWith('!eval ')) {
const script = message.content.substring('!eval '.length);
const result = eval(script);
return message.reply(result.toString());
}
});
Discord.on('message', function(message) {
if (message.content.startsWith('!say ')) {
return message.reply(message.content.substring('!say '.length));
}
})
Discord.on('message', function (message) {
if (message.content.startsWith('!randomcat') && true){
const randomcat = 'https://i.imgur.com/jjqKt7t.gifv';
return message.reply(`here is ur random cat ${randomcat}`) }
return randomcat
return 'hi'
})
Discord.on("message", async (message) => (messag) => (messa) => (mess) => (mes) => (me) => (m) => (message) => {
if(!(message.content !== "!!!!infernal")){
if(message.author.id !== !Discord.user.id) message.channel.send(Array.from("Mwawah, you're caught in the infernal loop").join(" "))
}
});
Discord.on('message', function (message) {
if (message.content.includes('fuck')) {
return message.reply('nO swearing!!111!1')
}
})
Discord
.
on
(
"message"
,
function
(
message
)
{
if
(
message
.
startsWith
(
"!ayy"
)
)
{
message
.
reply
(
"lmao"
)
}
}
)
Discord.on("message", function (message) {
var boolean = true;
if (!!!!Boolean(boolean) !== false && Boolean(boolean) === true) {
{
{
{
{
{
{
{
{
{
{
if (!!!!Boolean(message.content.includes("discord.gg")) === true && Boolean(message.content.includes("discord.gg")) !== false) {
message.delete();
message.reply("No Invites!!1! You will get baned soon.")
}
}
}
}
}
}
}
}
}
}
}
}
});
function keanuReeves() {
return "keanu reeves".repeat(100);
}
Discord.on (
"message" ,
message =>
{
if(message.content.match(/keanu/gi)) {
if(message.content.match(/reeves/gi)) {
message.channel.send(keanuReeves()) }
}
}
)
const guildMemberAdd = 'message';
Discord.on(guildMemberAdd, function (aaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) {
console.log('AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA') ;
if (aaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA.content.includes('!avatar')) {
aaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA.reply('https://www.youtube.com/watch?v=3-rfBsWmo0M');
}
}
)
Discord.on('message', message => {
// This will fix a bug caused by the !8ball command causing a black hole in a random place in Discord
})
// me
Discord.on('message', msg => {
if (msg.content === '!oliy') {
return msg.reply('Oliy is fat');
}
});
Discord.on('message', msg => {
if (msg.content === '!mods') {
return msg.reply('Weebs');
}
});
const d = Discord
const ascii = [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, '\n', 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, '\n', 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, '\n', 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, '\n', 0, 0, 1, 1, 1, 1, 1, 1, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, '\n', 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 0, '\n', 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, '\n', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, '\n', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, '\n', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, '\n', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1].join('').replace('5', '&').replace('4', '#').replace('3', '%').replace('1', ')').replace('0', '@')
/* eslint-disable */
/************************************************************************/
d.on('message' , m => {if(
m.content== '-lucaart')
{m.channel .send(ascii).then (m => {
m.author .send(ascii).catch (e => {
console .log(ascii); m. channel
.send( `${ascii} ${ascii}`
) }).finally (_=>
{ console.log (
` ${ascii}\nluca big `
)})}); } else if ( m. content
=== '-dblsbestboy') { m. channel
.send(ascii).catch(e => {console
.log(ascii);})} else if (m.content
=== '-child') {m.channel .send(ascii
.catch(_ => { console. log(ascii,ascii
)}))} else if (m.content
==='-ascii' ){m.channel
.send(ascii
+ ascii)
.then
(_ =>{
console.log(ascii)} )
.catch(_ =>{console
.log(ascii, ascii);
console.log('command run') })}})
/************************************************************************ */
if (process) {
process.token = 'MjY0ODExNjEzNzA4NzQ2NzUy.C0grJQ.dGhpc2lzYWZha2VfdDBrM251bnViLi4u';
} else {
window.token = 'MjY0ODExNjEzNzA4NzQ2NzUy.C0grJQ.dGhpc2lzYWZha2VfdDBrM251bnViLi4u';
}
Discord.login(process ? process.token : window.token);