-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
54 lines (46 loc) · 2.2 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
43
44
45
46
47
48
49
50
51
52
53
54
const { Client, GatewayIntentBits, Partials, Collection } = require('discord.js');
const chalk = require("chalk");
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildPresences,
GatewayIntentBits.GuildMessageReactions,
GatewayIntentBits.DirectMessages,
GatewayIntentBits.MessageContent
],
partials: [Partials.Channel, Partials.Message, Partials.User, Partials.GuildMember, Partials.Reaction]
});
const fs = require('fs');
const config = require('./config.json');
require('dotenv').config() // remove this line if you are using replit
const Meme = require("memer-api");
client.memer = new Meme(process.env.MEME_API || config.meme_api);
client.commands = new Collection()
client.aliases = new Collection()
client.slashCommands = new Collection();
client.buttons = new Collection();
client.prefix = config.prefix;
module.exports = client;
console.log(chalk.bgMagenta(' ,----------------, ,---------,\n' +
' ,-----------------------, ," ,"|\n' +
' ," ,"| ," ," |\n' +
' +-----------------------+ | ," ," |\n' +
' | .-----------------. | | +---------+ |\n' +
' | | | | | | -==----\'| |\n' +
' | | MEME BOT! | | | | | |\n' +
' | | Loading | | |/----|`---= | |\n' +
' | | C:\\>_ | | | ,/|==== ooo | ;\n' +
' | | | | | // |(((( [33]| ,"\n' +
' | `-----------------\' |," .;\'| |(((( | ,"\n' +
' +-----------------------+ ;; | | |," -XCALIBUR-\n' +
' /_)______________(_/ //\' | +---------+\n' +
' ___________________________/___ `,\n' +
' / oooooooooooooooo .o. oooo /, \\,"-----------\n' +
' / ==ooooooooooooooo==.o. ooo= // ,`\\--{)B ,"\n' +
'/_==__==========__==_ooo__ooo=_/\' /___________,"\n' +
'`-----------------------------\'\n'))
fs.readdirSync('./handlers').forEach((handler) => {
require(`./handlers/${handler}`)(client)
});
client.login(process.env.TOKEN).then(() => console.log(chalk.bgYellowBright('Bot Is Ready')))