forked from tomich/craig
-
Notifications
You must be signed in to change notification settings - Fork 2
/
_default.js
163 lines (151 loc) · 4.16 KB
/
_default.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
const Eris = require('eris');
module.exports = {
// Redis, leave blank to connect to localhost:6379 with "craig:" as the prefix
redis: {},
// redis: {
// host: 'localhost',
// port: 6379,
// keyPrefix: 'craig:'
// },
sharding: {
file: './index.js',
// The amount of shards to spawn in sharding mode
shardCount: 2,
// The amount of time to wait for a ready
readyTimeout: 60000
},
// InfluxDB options
influx: false,
// influx: {
// url: 'https://influx.example.com',
// token: '',
// org: 'discord',
// bucket: 'craig',
// server: 'dev',
// bot: 'craig'
// },
// Sentry options
sentry: false,
// sentry: {
// dsn: 'https://[email protected]/1',
// env: 'development',
// sampleRate: 1.0
// },
dexare: {
// Bot token
token: '',
// Application ID
applicationID: '',
/** @type {Eris.ClientOptions} */
erisOptions: {
autoreconnect: true,
allowedMentions: {
everyone: false,
roles: false,
users: true
},
defaultImageFormat: 'png',
defaultImageSize: 256,
messageLimit: 0,
gateway: {
maxShards: 1,
intents: ['guilds', 'guildMessages', 'guildVoiceStates'],
requestTimeout: 15000
}
},
// Users who can eval
// elevated: ['158049329150427136'],
elevated: ['297933425489215488'], // Return this to original value after testing
prefix: ['craig', ':craig:', 'craig,', ':craig:,'],
mentionPrefix: true,
craig: {
// The craig emoji ID
emoji: '297187944295301122',
// The domain to get downloads from, will be given in https
downloadDomain: 'localhost:5029',
// The homepage of the bot
homepage: 'https://craig.chat/',
// Record disk size limit, in bytes
sizeLimit: 536870912,
// Record disk size limit for Opus web users, in bytes
sizeLimitWebOpus: 1073741824,
// Record disk size limit for FLAC web users, in bytes
hardLimitWeb: 4294967296,
// Whether to remove the nickname after finishing the recording
removeNickname: true,
// Whether to recognize alistair emojis instead of craig emojis
alistair: false,
// The folder to put recordings in
recordingFolder: '../../rec',
// Webapp settings
webapp: {
on: true,
url: 'ws://localhost:9001/shard',
token: '1234',
// connectUrl: 'https://web.craig.chat?id={id}&key={key}',
connectUrl: 'http://localhost:5000?id={id}&key={key}'
},
rewardTiers: {
[-1]: {
// Greater Weasels
recordHours: 24,
downloadExpiryHours: 720,
features: ['mix', 'auto', 'drive', 'glowers', 'eccontinuous', 'ecflac', 'mp3']
},
[0]: {
// Default
recordHours: 6,
downloadExpiryHours: 168,
features: []
},
[10]: {
// Supporters / I'm chipping in!
recordHours: 6,
downloadExpiryHours: 336,
features: ['drive', 'glowers'],
sizeLimitMult: 2
},
[20]: {
// Supporterers / More power!
recordHours: 24,
downloadExpiryHours: 720,
features: ['mix', 'auto', 'drive', 'glowers', 'eccontinuous'],
sizeLimitMult: 2
},
[30]: {
// Supporterests / I DEMAND FLAC
recordHours: 24,
downloadExpiryHours: 720,
features: ['mix', 'auto', 'drive', 'glowers', 'eccontinuous', 'ecflac'],
sizeLimitMult: 2
},
[100]: {
// MP3 God
recordHours: 24,
downloadExpiryHours: 720,
features: ['mix', 'auto', 'drive', 'glowers', 'eccontinuous', 'ecflac', 'mp3'],
sizeLimitMult: 5
}
}
},
status: {
type: 2, // Listening to
name: 'your conversations'
},
logger: {
level: 'debug'
},
slash: {
creator: {
allowedMentions: {
everyone: false,
roles: false,
users: true
},
defaultImageFormat: 'png',
defaultImageSize: 256
}
}
},
commandsPath: './textCommands'
};