-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.js
More file actions
55 lines (41 loc) · 1.35 KB
/
server.js
File metadata and controls
55 lines (41 loc) · 1.35 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
const discord = require("discord.js")
const client =new discord.Client()
const talkedRecently = new Set();
client.on("ready", () => {
console.log("Vex ★ yAshex")
client.user.setActivity("Send Link xoshnaw UP , yAshex")
})
client.on("message", vex => {
if(vex.content.includes("discord.gg")){
if (talkedRecently.has(vex.author.id)) {
vex.author.send("Wait 1 minute before getting typing this again. - ");
} else {
if(vex.channel.type === "dm"){
if(vex.author.id===client.user.id) return;
vex.author.send("https://discord.gg/BmzN8ZvgQN")
let s2 = vex .content = vex.content.replace(/@(everyone)/, "🥰").replace(/@(here)/, "🥰");
let hama1 = client.channels.cache.get("755228220911255552")//id bashe reklam
hama1.send(`
ناردرا لە لایەن
<@${vex.author.id}> ` +`
سێرڤەرەکە
${s2}
`)
}
}}
talkedRecently.add(vex.author.id);
setTimeout(() => {
talkedRecently.delete(vex.author.id);
}, 60000);
})
const channelid = "848301704100577290"//id channele vc
client.on("ready", () => {
const channel = client.channels.cache.get(channelid);
if (!channel) return console.error("The channel does not exist!");
channel.join().then(connection => {
console.log("Successfully connected.");
}).catch(e => {
console.error(e);
});
});
client.login("")