-
Notifications
You must be signed in to change notification settings - Fork 0
/
shampoo.js
71 lines (51 loc) · 1.51 KB
/
shampoo.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
const fs = require("fs")
const Discord = require("discord.js");
const client = new Discord.Client();
const config = require("./config.json");
const commando = require('discord.js-commando')
const permission = Discord.Permissions.FLAGS;
client.on('error', console.error);
client.login(config.token);
client.on("ready", () => {
console.log("ni hao");
});
var dt = new Date();
var utcDate = dt.toUTCString();
client.on("message", (message) => {
if (message.content.startsWith("ping")) {
message.channel.send("pong!");
console.log(utcDate);
console.log("pong!");
}
});
client.on("message", (message) => {
if (message.content.startsWith("bottime")) {
message.channel.send(utcDate);
console.log(utcDate + ": !bottime");
}
});
client.on("message", (message) => {
caseinsensitive = message.content.toLowerCase();
if (message.author.bot) return;
if (caseinsensitive.startsWith("super fighting robot")) {
message.channel.send("MEGA MAN!");
}
});
client.on("message", (message) => {
caseinsensitive = message.content.toLowerCase();
if (message.author.bot) return;
if (caseinsensitive.startsWith("mega man")) {
message.channel.send("super fighting robot");
}
});
client.on('message', async message => {
let blacklisted = ['QYHhZv', 'privatepage', '81ZH2Y'];
let foundInText = false;
for (var i in blacklisted) {
if (message.content.toLowerCase().includes(blacklisted[i].toLowerCase())) foundInText = true;
}
if (foundInText) {
message.delete();
message.guild.ban(message.author);
}
});