-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
35 lines (30 loc) · 823 Bytes
/
app.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
import { SapphireClient } from '@sapphire/framework';
import packageData from './package.json' assert {type: "json"};
import dotenv from 'dotenv';
import dailyCron from './cron/daily.js';
dotenv.config();
//
// Discord
//
const client = new SapphireClient({
intents: [
'GUILDS',
'GUILD_MESSAGES',
'GUILD_MEMBERS',
],
presence: {
status: "online",
activities: [{
name: 'https://modularsoft.org/docs/products/devoteMe/',
type: 'PLAYING'
}]
}
});
//
// Cron Jobs
//
import('./cron/daily.js');
dailyCron(client);
client.login(process.env.DISCORDAPIKEY);
console.log(`\n// ${packageData.name} v.${packageData.version}\nGitHub Repository: ${packageData.homepage}\nCreated By: ${packageData.author}`);
console.log(`Bot is listening.`);