-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathdata.js
105 lines (88 loc) · 2.95 KB
/
data.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/**
* Configuration
* This is the entire bot configuration file.
* Some items need to be configured to work properly.
* It is recommended to look at the .env or .env.example files
* to understand these values.
*/
const constants = require('./constants.json')
const emulators = require('./emulators.json')
const filters = require('./filters.json')
const logger = require('./logger.json')
const notification = require('./notification')
const translation = require('./translation')
module.exports = {
// Check bot updates from Github.
check_update: {
enable: true,
releases_url: 'https://api.github.com/repos/Maseshi/Shioru/releases/latest',
},
// The default for processing responses in chat.
constants: constants,
// Music director.
djs: {
enable: false,
only: false,
roles: [],
users: [],
},
// Firebase emulator suite
/// This configuration should match the file. firebase.json in the emulators section
/// if you don't have it yet. firebase.json, use "npm install -g firebase-tools",
/// run "firebase init", then set up emulators.
/// https://firebase.google.com/docs/emulator-suite
emulators: emulators,
// Filters for music.
filters: filters,
// Setup webhook logger
logger: logger,
// For checking performance.
monitoring: {
apiKey: process.env.MONITOR_API_KEY ?? '',
metricId: process.env.MONITOR_METRIC_ID ?? '',
pageId: process.env.MONITOR_PAGE_ID ?? '',
},
// Support notification alert
notification: notification,
// Setup OpenAI
openai: {
apiKey: process.env.OPENAI_API_KEY ?? '',
baseURL: process.env.OPENAI_BASE_URL ?? 'https://api.openai.com',
organization: process.env.OPENAI_ORGANIZATION ?? '',
project: process.env.OPENAI_PROJECT ?? '',
},
// Setup Open Weather
open_weather_token: process.env.OPEN_WEATHER_TOKEN ?? '',
// We use Firebase to deploy databases to the system.
server: {
apiKey: process.env.API_KEY ?? '',
authDomain: process.env.AUTH_DOMAIN ?? '',
databaseURL: process.env.DATABASE_URL ?? '',
projectId: process.env.PROJECT_ID ?? '',
storageBucket: process.env.STORAGE_BUCKET ?? '',
messagingSenderId: process.env.MESSAGING_SENDER_ID ?? '',
appId: process.env.APP_ID ?? '',
measurementId: process.env.MEASUREMENT_ID ?? '',
},
// Discord ID of the team.
team: {
// For executing risky commands but does not have the same rights as the owner
developer: [
// '123456789101112131'
// '131121110987654321'
],
// For use in processing suspicious requests.
owner: '618836889239158785',
},
// For setting application commands in test mode.
test_guild: '1041689622897508372',
// The bot token, which can be found on the Discord Developer page.
token: process.env.TOKEN ?? '',
// Setup Top.gg
top_gg_token: process.env.TOP_GG_TOKEN ?? '',
// Translation support locales
translation: {
baseURL: process.env.TRANSLATION_BASE_URL ?? '',
locales: translation,
},
}