-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.js
32 lines (30 loc) · 877 Bytes
/
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
require("dotenv").config({ path: "./.env" });
const { Client } = require("discord.js-selfbot-v13");
const { runClientSchedule } = require("./clientSchedule");
const { runClientContinuous } = require("./clientContinuous");
const action = process.argv[2];
try {
if (action === "runClientSchedule") {
runClientSchedule(
process.env.CHANNEL,
process.env.OWNER,
process.env.TOKEN,
new Client({
checkUpdate: false,
})
);
} else if (action === "runClientContinuous") {
runClientContinuous(
process.env.CHANNEL,
process.env.OWNER,
process.env.TOKEN,
new Client({
checkUpdate: false,
})
);
} else {
console.log("Invalid action.");
}
} catch (error) {
console.log(error);
}