-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.js
30 lines (23 loc) · 762 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
// ----------[ LOADING BOT ]----------\\
/*
* Comfi Bot for Discord
* Copyright (C) 2023 Xx-Mohit-xX
* This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
* For more information, see README.md and LICENSE
*/
// -----[ DEFINING DEPENDENCIES ]-----\\
/**
* Initializes and exports the Comfi bot instance.
*
* Loads the Comfi bot utils and creates a new Comfi instance.
* Connects to Discord and sets the max listeners to 0.
* Exports the Comfi instance for use in other files.
*/
// Uncomment this if you need
require('dotenv').config()
const Comfi = require('./utils/Comfi')
const bot = new Comfi()
bot.connect()
bot.setMaxListeners(0)
module.exports = bot
// ---------[ PROCESS ENDED ]---------\\