This repository has been archived by the owner on Jul 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgoanibot.js
320 lines (217 loc) Β· 9.35 KB
/
goanibot.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
const Discord = require('discord.js');
const client = new Discord.Client();
const config = require('./config.json');
client.on("ready", () =>{
console.log(`Logged in as ${client.user.tag}!`);
client.user.setActivity(config.status), { type: 'PLAYING' }
})
// working on banned command
// client.on('message', message => {
// if (message.author.id) === banned.banned
// did you mean |
// Prefix (|) Website: 2epik4u.tk/goanibot Discord: 2epik4u.tk/2epik4u
client.on('message', message => {
if (message.content.toLowerCase().startsWith(config.prefix + "ragecookie")) {
if (message.author.id === "569341656449548290") return;
const GoEmbed = new Discord.MessageEmbed()
.setTitle('this is what development looks like xdd')
.attachFiles(['https://cdn.discordapp.com/attachments/571483118062796822/765585880005869598/Screen_Shot_2020-09-10_at_3.52.37_PM.png'])
.setDescription('EGS DE TOTAL NOT RIP OFF')
// Set the color of the embed
.setColor(0xFF0000)
// Set the main content of the embed
// Send the embed to the same channel as the message
message.channel.send(GoEmbed);
}
})
// gotest dance
client.on('message', message => {
if (message.content.toLowerCase().startsWith(config.prefix + "gotestdance")) {
if (message.author.id === "569341656449548290") return;
const GoEmbed = new Discord.MessageEmbed()
.setTitle('GoTest344 Dancing')
.attachFiles(['https://cdn.discordapp.com/attachments/740797420744474734/747367509509799946/gotest.gif'])
.setDescription('nice.')
// Set the color of the embed
.setColor(0xFF0000)
// Set the main content of the embed
// Send the embed to the same channel as the message
message.channel.send(GoEmbed);
}
})
// cake
client.on('message', message => {
if (message.content.toLowerCase().startsWith(config.prefix + "hiddencake")) {
if (message.author.id === "569341656449548290") return;
const GoEmbed = new Discord.MessageEmbed()
.setTitle('You found the hidden cake!')
.attachFiles(['https://cdn.discordapp.com/attachments/740797420744474734/747365229737934928/cake.png'])
.setDescription('nice. but its not a real cake so dont eat it!')
// Set the color of the embed
.setColor(0x0092b0)
// Set the main content of the embed
// Send the embed to the same channel as the message
message.channel.send(GoEmbed);
}
})
//epik dancing
client.on('message', message => {
if (message.content.toLowerCase().startsWith(config.prefix + "epikdance")) {
if(message.author.id === "569341656449548290") return;
const GoEmbed = new Discord.MessageEmbed()
.setTitle('Here is 2Epik4u Dancing!')
.attachFiles(['https://cdn.discordapp.com/attachments/740797420744474734/746628859784331304/epikdance.gif'])
.setDescription('πππ!')
// Set the color of the embed
.setColor(0x1653C1)
// Set the main content of the embed
// Send the embed to the same channel as the message
message.channel.send(GoEmbed);
}
})
client.on('message', message => {
if (message.content.toLowerCase().startsWith(config.prefix + "poggerdance")) {
if(message.author.id === "569341656449548290") return;
const GoEmbed = new Discord.MessageEmbed()
.setTitle('Cushion Poggers Dancing!!!!')
.attachFiles(['https://cdn.discordapp.com/attachments/736381316039180350/783769510255001620/lemondance.gif'])
.setDescription('oh no hes not poggers')
// Set the color of the embed
.setColor(0xFE0000)
// Set the main content of the embed
// Send the embed to the same channel as the message
message.channel.send(GoEmbed);
}
})
// lemondance
client.on('message', message => {
if (message.content.toLowerCase().startsWith(config.prefix + "lemondance")) {
if(message.author.id === "569341656449548290") return;
const GoEmbed = new Discord.MessageEmbed()
.setTitle('wtf?????????? so scary!!!!! ππππ')
.attachFiles(['https://cdn.discordapp.com/attachments/799889523231555586/816681680382197770/static-assets-upload6072567890192608323.gif'])
.setDescription('ok')
// Set the color of the embed
.setColor(0xFE0000)
// Set the main content of the embed
// Send the embed to the same channel as the message
message.channel.send(GoEmbed);
}
})
//mj dancing
client.on('message', message => {
if (message.content.toLowerCase().startsWith(config.prefix + "mjdance")) {
if (message.author.id === "569341656449548290") return;
const GoEmbed = new Discord.MessageEmbed()
.setTitle('Woah is that MJ the spirit dancing')
.attachFiles(['https://cdn.discordapp.com/attachments/723742491433500782/814524663597498368/60fpsmj-4x-RIFE.gif'])
.setDescription('how does he dance so smooth π³π³')
// Set the color of the embed
.setColor(0xFC8C06)
// Set the main content of the embed
// Send the embed to the same channel as the message
message.channel.send(GoEmbed);
}
})
//cyan dance
client.on('message', message => {
if (message.content.toLowerCase().startsWith(config.prefix + "cyandance")) {
if (message.author.id === "569341656449548290") return;
const GoEmbed = new Discord.MessageEmbed()
.setTitle('CyanAnimate dancing very nice')
.attachFiles(['https://cdn.discordapp.com/attachments/740797420744474734/746522631926448168/cyan.gif'])
.setDescription('cyan more like tom from eddsworld')
// Set the color of the embed
.setColor(0xFC8C06)
// Set the main content of the embed
// Send the embed to the same channel as the message
message.channel.send(GoEmbed);
}
})
client.on('message', message => {
if (message.content.toLowerCase().startsWith(config.prefix + "ground")) {
if(message.author.id === "569341656449548290") return;
if (message.author.bot) return;
const user = message.mentions.users.first();
if (user) {
const member = message.guild.member(user);
if (member) {
message.channel.send(`${user.tag} is grounded grounded grounded grounded grounded for infinity years. Now ${user.tag} Go to your room right now! `).then(() => {
}).catch(err => {
message.reply('i cant ground him');
console.error(err);
});
} else {
message.reply('That user isn\'t in this guild!');
}
} else {
message.reply('mention who you are grounding you cant ground nobody');
}
}
});
client.on('message', message => {
if (message.content.startsWith(config.prefix + "unground")) {
if(message.author.id === "569341656449548290") return;
const user = message.mentions.users.first();
if (user) {
const member = message.guild.member(user);
if (member) {
message.channel.send(`${user.tag} is ungrounded πππ`).then(() => {
}).catch(err => {
message.reply('I was unable to ground the member');
console.error(err);
});
} else {
message.reply('That user isn\'t in this guild!');
}
} else {
message.reply('mention who you are ungrounding you cant ground nobody');
}
}
});
//discord help command
client.on('message', message => {
if(message.author.id === "569341656449548290") return;
if (message.content.toLowerCase().startsWith(config.prefix + "help")) {
const GoEmbed = new Discord.MessageEmbed()
// Set the title of the field
.setTitle('GoAnibot V2')
// Set the color of the embed
.setColor('RANDOM')
// Set the main content of the embed
.setURL('https://discord.com/oauth2/authorize?client_id=628607192806981632&scope=bot&permissions=6041')
.setAuthor('GoAnibot', 'https://cdn.discordapp.com/attachments/783855479528882236/790600489820880967/goanibot_v2.png', 'https://2epik4u.xyz')
.setDescription('Welcome to GoAnibot')
.addFields(
{ name: 'epikdance', value: 'Makes 2Epik4u Dance' },
{ name: 'mjdance', value: 'Shows MJ Dancing', inline: true },
{ name: 'hiddencake', value: 'Gives you a free hidden cake!', inline: true },
{ name: 'poggerdance', value: 'dancing pogger man O_O' },
{ name: 'lemondance', value: 'dancing lemon man O_O' },
{ name: 'ground', value: 'Ground people', inline: true },
{ name: 'hiddencake', value: 'Gives you a free hidden cake!', inline: true }
)
.addField('gotestdance', 'GoTest dancing', true)
.setTimestamp()
.setFooter('Made by 2Epik4u', 'https://cdn.discordapp.com/attachments/783855479528882236/790600489820880967/goanibot_v2.png');
// Send the embed to the same channel as the message
message.channel.send(GoEmbed);
}
});
// respond if pinged
client.on('message', message => {
if (message.author.bot) return false;
if (message.content.includes("@here") || message.content.includes("@everyone")) return false;
if (message.mentions.has(client.user.id)) {
message.channel.send('prefix is "ga " with a space.');
}
});
// make bot say a thing
client.on("message", async message => {
if (message.author.bot) return;
if (message.content.toLowerCase().startsWith(config.prefix + "say")) {
message.channel.send(message.content.slice(6, message.content.length));
}
});
// bot token login
client.login(config.token)