-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.js
43 lines (36 loc) · 1.57 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
const { Client, GatewayIntentBits } = require("discord.js");
require("dotenv").config();
const client = new Client({
disableMentions: "everyone",
restTimeOffset: 0,
intents: [ GatewayIntentBits.GuildMessages, GatewayIntentBits.Guilds, GatewayIntentBits.MessageContent ],
});
client.login(process.env.TOKEN);
client.on("warn", (info) => console.log(info));
client.on("error", console.error);
client.on("ready", () => {
console.log(`${client.user.username} ready!`);
});
client.on("messageCreate", async (message) => {
if (message.author.bot) return;
const content = message.content;
const bauRegex = /(^| |\"|\')bau( |$|\.|\,|!|\?|\:|\;|\"|\')/i
if(bauRegex.test(content)) {
const arkaRegex = /(^| |\"|\')arka( |$|\.|\,|!|\?|\:|\;|\"|\')/i
if(arkaRegex.test(content) || content.includes("796773828059201616")) { // Easter egg for Arka Zelaphiel.
message.reply("Arka bau.\n\nPsssssttt... 🌼\nPsssssttt... 🌼\nPsssssttt... 🌼\nPsssssttt... 🌼\nPsssssttt... 🌼");
return;
}
const senRegex = /(^| |\"|\')(sen{1,}a?)( |$|\.|\,|!|\?|\:|\;|\"|\')/i
if(senRegex.test(content) || content.toLowerCase().includes("mentega") || content.includes("349956953252036622")) {
message.reply("Udah wangy, ga perlu pssst. ❤️");
return;
}
const randomNumber = Math.floor(Math.random() * 30);
if(randomNumber == 5) {
message.reply('Bentar, refill dulu bentar... 😵');
} else {
message.reply('Psssssttt... 🌼');
}
}
});