-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.js
42 lines (37 loc) · 1.04 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
38
39
40
41
42
const express = require("express");
const chalk = require("chalk");
const server = express();
const prompt = require("prompt-sync")({ sigint: true });
console.log(
chalk.cyanBright.bold("ActivityCord") +
" | " +
chalk.greenBright.bold("RinForeverz - Rin4Ever.xyz")
);
server.all("/", (req, res) => {
res.send(
'<meta http-equiv="refresh" content="0; URL=https://rin4ever.xyz"/>'
);
});
server.listen(3000);
console.log("\n[" + chalk.green.bold("+") + "]" + " The webserver is ready!.");
console.log(
"\n[" +
chalk.yellow.bold("!") +
"] Which presence would you like to start?\n\n[1] Playing Status \n[2] Listening Status\n[3] Streaming Status\n\n"
);
status = prompt("> ");
if (status == 1) {
console.clear();
import("./statuses/playing.js");
} else if (status == 2) {
console.clear();
import("./statuses/listening.js");
} else if (status == 3) {
console.clear();
import("./statuses/streaming.js");
} else {
console.log(
"[" + chalk.red.bold("-") + "] Invalid option, Select Options First!"
);
process.exit();
}