-
Notifications
You must be signed in to change notification settings - Fork 792
/
bot.js
36 lines (30 loc) · 1.13 KB
/
bot.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
const { Client, GatewayIntentBits, Partials } = require("discord.js");
const ayarlar = require("./ayarlar.json");
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]
});
module.exports = client;
require("./events/message.js")
require("./events/ready.js")
const express = require("express");
const app = express();
const http = require("http");
app.get("/", (request, response) => {
response.sendStatus(200);
});
app.listen(process.env.PORT);
client.login(process.env.TOKEN || ayarlar.token)
/*
############################################################################
# Discord Bot Altyapı v14 #
# https://github.com/EmirhanSarac/discord-altyapi-bot #
############################################################################
*/