forked from mewzax/Discord-RPC-Selfbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
25 lines (22 loc) · 2.01 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
const discord = require('freeze-selfbot');
const client = new discord.Client();
const config = require("./config")
const express = require('express');
const console = require("./utils/logger")
const app = express();
module.exports = client;
process.env.TOKEN ? client.login(process.env.TOKEN) : console.exit("No token provided");
config.mode ? require(`./presences/${config.mode}`) : console.exit('No presence selected!');
console.logger.info(`
██████╗ ██╗███████╗ ██████╗ ██████╗ ██████╗ ██████╗ ██████╗ ██████╗ ██████╗
██╔══██╗██║██╔════╝██╔════╝██╔═══██╗██╔══██╗██╔══██╗ ██╔══██╗██╔══██╗██╔════╝
██║ ██║██║███████╗██║ ██║ ██║██████╔╝██║ ██║█████╗██████╔╝██████╔╝██║
██║ ██║██║╚════██║██║ ██║ ██║██╔══██╗██║ ██║╚════╝██╔══██╗██╔═══╝ ██║
██████╔╝██║███████║╚██████╗╚██████╔╝██║ ██║██████╔╝ ██║ ██║██║ ╚██████╗
╚═════╝ ╚═╝╚══════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═════╝
`
)
app.get('/', (_, res) => {
res.send('Presence is ready!');
});
app.listen(3000)