-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
37 lines (35 loc) · 1.07 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
///By Alan
///By Alan
const express = require("express");
const app = express();
app.listen(() => console.log("Server Started A L A N"));
app.use('/ping', (req, res) => {
res.send(new Date());
});
const { Client } = require('discord.js-selfbot-v13');
const client = new Client(); // All partials are loaded automatically
///By Alan
client.on('ready', async () => {
console.log(`${client.user.username} is ready! Fatures:
1- Streaming Added
2- Joined Voice Channel
3- Without Offline 24/7
Dont Miss Credits To 'kurdm98`);
})
const { joinVoiceChannel } = require('@discordjs/voice');
client.on('ready', () => {
///By Alan
client.user.setActivity("", { type: "", url: "" })
setInterval(async () => {
client.channels.fetch("1185234955161309295")
.then((channel) => {
const VoiceConnection = joinVoiceChannel({
channelId: channel.id,
guildId: channel.guild.id,
adapterCreator: channel.guild.voiceAdapterCreator
});
}).catch((error) => { return; });
}, 1000)
});
client.login(process.env.token);
///By Alan