-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
116 lines (97 loc) · 4.46 KB
/
main.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
const Discord = require("discord.js");
const client = new Discord.Client();
const prefix = ".";
const fs = require("fs");
client.commands = new Discord.Collection();
const commandFiles = fs.readdirSync ("./commands/").filter(file => file.endsWith(".js"));
for (const file of commandFiles){
const command = require(`./commands/${file}`);
client.commands.set(command.name, command);
}
client.once("ready", () => {
console.log(`${client.user.username}` + " is online");
});
//client.on("ready", () => {
// client.user.setActivity(`-help`, { type: `LISTENING`});
//});
client.on("message", message =>{
if (message.content === "Jebem ti mater") {
message.reply("i ja tebi isto!");
}
if (message.content === "So you are crewmate? Name every task") {
message.channel.send([
"Upper Engine: Align Engine Output",
"Lower Engine: Align Engine Output",
"Electrical: Calibrate Distributor",
"O2: Clean O2 Filter",
"Weapons: Clear Asteroids",
"Admin: Fix Wiring",
"Cafeteria: Fix Wiring",
"Electrical: Fix Wiring",
"Navigation: Fix Wiring",
"Securiy: Fix Wiring",
"Storage: Fix Wiring",
"Storage: Fuel Engines",
"Upper Engine: Fuel Engines",
"Lower Engine: Fuel Engines",
"MedBay: Inspect Sample",
"Shields: Prime Shields",
"Navigation: Stabilize Steering",
"Reactor: Start Reactor",
"MedBay: Submit Scan",
"Admin: Swipe Card",
"Reactor: Unlock Manifolds",
"Upper Engine: Upload Data",
"Lower Engine: Upload Data"
]);
}
if (!message.content.startsWith(prefix) || message.author.bot) return;
const args = message.content.slice(prefix.length).split(/ +/);
const command = args.shift().toLowerCase();
if(command === "picka"){
client.commands.get("picka").execute(message, args);
} else if(command === "lmao"){
client.commands.get("lmao").execute(message, args);
} else if(command === "sus"){
client.commands.get("sus").execute(message, args);
} else if(command === "simp"){
client.commands.get("simp").execute(message, args);
} else if(command === "ppsize"){
client.commands.get("ppsize").execute(message, args);
} else if(command === "gay"){
client.commands.get("gay").execute(message, args);
} else if(command === "help"){
const helpEmbed = new Discord.MessageEmbed()
.setColor(0x4bf542)
.setTitle(`${client.user.username}` + " Commands List")
.setDescription("**Bot je jos u developmentu doci ce jos komandi**")
.setAuthor(client.user.username)
.addField("--------------------------------------------", "**Komande sa prefixom -**")
.addField(`-lmao`, `lmao`)
.addField(`-picka`, `Picka materina`)
.addField(`-sus`, "Ko je sus?")
.addField("-simp <target>", "Koliko si posto simp (ili neko drugi)")
.addField("-ppsize <target>", "Koliki ti imas pp (ili neko drugi)")
.addField("-gay <target>", "Koliko si posto gay (ili neko drugi)")
.addField("-kill <target>", "Ubijes nekoga")
.addField("-yeet <target>", "Yeetas nekoga vjv u tri pm")
.addField("--------------------------------------------", "**Komande bez prefixa**")
.addField("So you are crewmate? Name every task", "Salje sve taskove kako bi dokazao da je crewmate")
.addField("Jebem ti mater", "Jebes mu mater pa onda on tebi")
.setThumbnail(message.author.displayAvatarURL)
.setFooter(`${client.user.username}` + " Commands")
.setTimestamp()
message.channel.send(helpEmbed);
} else if(command === "kill"){
client.commands.get("kill").execute(message, args);
} else if(command === "yeet"){
client.commands.get("yeet").execute(message, args);
} else if(command === "ping"){
client.commands.get("ping").execute(message, args);
} else if(command === ("play")){
client.commands.get("play").execute(message, args);
} else if(command === ("leave")){
client.commands.get("leave").execute(message, args);
}
});
client.login(process.env.token);