-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
131 lines (116 loc) · 6.47 KB
/
index.js
File metadata and controls
131 lines (116 loc) · 6.47 KB
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
const Discord = require("discord.js");
const client = new Discord.Client();
const moment = require("moment");
require("moment-duration-format");
// This makes the bot work. When the bot is working and online it send the message "Ready" in closal
client.on("ready", () => {
console.log("Ready");
});
//this is the bot login aka the token NEVER SHARE THIS!!
client.login("TOKEN-WAS-HERE");
//this is the ping command
client.on("message", (message) => {
if (mescontent.startsWith("??ping")) {
message.channel.send(`Pong! :ping_pong: = ${Math.round(client.ping)}ms `);
}});
//uptime ${duration}
//This is the help commannd
client.on("message", (message) => {
if (message.author.bot) return;
if (message.content.startsWith("??help")) {
message.channel.send('??help -> what this is \n??about -> about this bot \n??poll -> makes a new poll \n??ping -> Shows you how fast i respond.');
}});
//This is the about commannd
client.on("message", (message) => {
if (message.author.bot) return;
if (message.content.startsWith("??about")) {
message.channel.send('I am a lurking Racoon made by Gideon Grey#4325. I basicly tell people what not to do here. Before you say *WOW Gideon is a grate dev* let me stop you there. This is a crapply made bot. A verson 2 will be made soon so dont worry about this!');
}});
// This flags bad words and tells users not to say them.
client.on("message", (message) => {
if (message.author.bot) return;
if (['array of bad words'].find(banned => message.content.toLowerCase().startsWith(banned))) {
message.channel.send(`<@${message.author.id}> <a:RedX:597874985167618133> Please do not say that word. Violation of <#597882894752677898> 1.`);
};
});
// This flags NSFW commands and tells the user not to use them.
client.on("message", (message) => {
if (message.author.bot) return;
if (['array of nsfw bot commands'].find(banned => message.content.toLowerCase().startsWith(banned))) {
message.channel.send(`<@${message.author.id}> <a:RedX:597874985167618133> Please don't try to run not safe for work (NSFW) bot commands. Violation of <#597882894752677898> 5.`);
};
});
//This flags @everyone and @here and tells them not to do it.
client.on("message", (message) => {
if (message.author.bot) return;
if (['<@&593122907857748002>' , '<@&593127354164051982>'].find(banned => message.content.toLowerCase().startsWith(banned))) {
// if(message.content.includes('<@&593122907857748002> || <@&593127354164051982>')) {
message.channel.send(`<@${message.author.id}> <a:RedX:597874985167618133> Please don't try pinging @everyone or @here. Violation of <#597882894752677898> 2.`)
};
});
//This flags the welcomer role and tells them not to ping it.
client.on("message", (message) => {
if (message.author.bot) return;
if(message.content.includes('<@&598932499212795915>')) {
message.channel.send(`<@${message.author.id}> <a:RedX:597874985167618133> Please don't to ping that role. Violation of <#597882894752677898> 2.`)
};
});
//poll command
client.on("message", (message) => {
if (message.author.bot) return;
if (message.content.startsWith("??poll")) {
message.react('598126537681928193')
.then(() => message.react('598126524033662976'))
.then(() => message.react('🤷'))
.catch(() => console.error('One of the emojis failed to react.'));
}
});
// copypast trigger [BROKEN]
/* client.on("message", (message) => {
if (message.author.bot) return;
if (message.content.includes("out for a Discord && going around && those who accept && send this to as many && if you see this || not accept friend request from && hackers && tell everyone && copy && paste || discord && clos && populated && active && please send && copy && paste && deleted without hesitation || || ╰━▅╮ && ╰╮ && ┳━━╯ && ╰┳╯ || ╰┳┳┳╯ && ▔╰━╯ && ╱╲╱╲ || Λ_Λ && ( 'ㅅ' ) && > ⌒ヽ || Carry on reading && Once there was && Now every week && send this to && copy and paste || Jake Paul on a tower about to jump && copy and paste && discord server || funny you opened this because && over the next && first you have && send it to && break the chain || || /▌ && /\ && This is bob || ╚═(███)═╝ && Lenn || say about me && ll have you know I && I am trained && Think again && Not only am I extensively trained && kid || have to have a very high IQ && extremely && solid grasp && deftly woven && heavily && intellectual capacity && cryptic reference || years old && is love && is life && spread && push against && straight in the")) {
message.channel.send(`<@${message.author.id}> <a:RedX:597874985167618133> Do not spred fake copypasts. Violation of <#597882894752677898> 2.`);
}});*/
//declare function moment(inp?: moment.MomentInput, format?: moment.MomentFormatSpecification, strict?: boolean): moment.Moment;
//const duration = moment.duration(client.uptime).format(" D [days], H [hrs], m [mins], s [secs]");
//const moment = require("moment");
// This bans you if you say the n word.
client.on("message", (message) => {
if (message.author.bot) return;
if ([ 'array if n words'].find(banned => message.content.toLowerCase().startsWith(banned))) {
message.member.ban({
reason: 'Lurking Raccoon#1622: [AUTOMOD FILTER] Use of discriminatory terminology. Violation rule of 1.',
}).then(() => {
message.channel.send(`<@${message.author.id}> was banned for for using discriminative terminology, violation of <#597882894752677898> 1.`);
}).catch(err => {
message.reply('I was unable to ban the member');
// Log the error
console.error(err);
})}
})
client.on('message', message => {
// If the message is "ping"
if (message.content === 'ping') {
// Send "pong" to the same channel
message.channel.send(({embed: {
color: 16755489,
author: {
},
title: "Counting",
description: `This is the couning channel where you count 1+ from the last person. **DO NOT** consecutive count. Wait until someone else counts before you go. `,
footer: {
}
}}))}})
client.on('message', message => {
// If the message is "ping"
if (message.content === 'embed') {
// Send "pong" to the same channel
message.channel.send(({embed: {
color: 16755489,
author: {
},
title: "Question and Answer",
description: `In this channel you answer a question and ask a question for the next person. Please answer a question before asking one! \n\nformat:\n A: your answer to the previous question.\nQ: your question for the next person to answer. `,
footer: {
}
}}))}})