-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
33 lines (27 loc) · 1.04 KB
/
Copy pathmain.js
File metadata and controls
33 lines (27 loc) · 1.04 KB
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
// eventsフォルダから.jsを取得
const { interactionCreateEvents } = require('./events/interactionCreate.js');
const { readyEvents } = require('./events/ready.js');
const { guildCreateEvents } = require('./events/guildCreate.js');
const { sendShojinResults} = require('./events/sendShojinResults.js');
const { sendDailyProblems } = require('./events/sendDailyProblems.js');
const { sendContestInformation } = require('./events/sendContestInformation.js');
// discord.jsから必要な機能を取得
const { Client, GatewayIntentBits } = require('discord.js');
// config.jsonからトークンを取得
const { token } = require('./config.json');
const guildCreate = require('./events/guildCreate.js');
const client = new Client(
{ intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent
]
}
);
interactionCreateEvents(client);
readyEvents(client);
guildCreateEvents(client);
sendShojinResults(client);
sendDailyProblems(client);
sendContestInformation(client);
client.login(token);