-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
31 lines (24 loc) · 673 Bytes
/
Copy pathmain.js
File metadata and controls
31 lines (24 loc) · 673 Bytes
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
require("dotenv").config();
const { Client } = require("@fluxerjs/core");
const Redis = require("ioredis");
const loadEvents = require("./handlers/loadEvents");
const loadCommands = require("./handlers/loadCommands");
BOT_PRESENCE = {
status: "online",
custom_status: {
text: "Counting in communities!",
},
};
const client = new Client({
intents: 0,
waitForGuilds: true,
presence: BOT_PRESENCE,
});
client.redis = new Redis({
host: process.env.REDIS_IP || "127.0.0.1",
port: process.env.REDIS_PORT || 6379,
});
client.commands = new Map();
loadCommands(client);
loadEvents(client);
client.login(process.env.FLUXER_BOT_TOKEN);