-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.js
33 lines (30 loc) · 1007 Bytes
/
server.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
const {
tokens,
voice_channel,
text_channel,
your_server
} = require("./config.js");
const time = [1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000];
const Discord = require("discord.js");
tokens.forEach(token => {
const client = new Discord.Client();
client.login(token);
client.on("message", async message => {
if (message.guild.id != your_server) return;
if (
message.author.id == "335645388323160064" && // تعديل مهم ايدي بوت الترحيب
message.content.includes("-") /// (الاستقبال) تعديل مهم رسالة الترحيب
) {
setTimeout(() => {
message.channel.send("**𝐖𝐄𝐋𝐂𝐎𝐌𝐄**"); /// (الارسال)تعديل مهم رسالة الترحيب
}, time[Math.floor(Math.random() * time.length)]);
}
});
client.on("ready", () => {
console.log(client.user.tag + " is ready!");
client.guilds
.get(your_server)
.channels.get(voice_channel)
.join();
});
});