This repository has been archived by the owner on Jun 2, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
reciple.mjs
77 lines (76 loc) · 2.03 KB
/
reciple.mjs
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
// @ts-check
import { CooldownPrecondition, CommandPermissionsPrecondition } from 'reciple';
import { IntentsBitField } from 'discord.js';
/**
* @satisfies {import('reciple').RecipleConfig}
*/
export const config = {
token: process.env.TOKEN ?? '',
commands: {
contextMenuCommand: {
enabled: true,
enableCooldown: true,
acceptRepliedInteractions: false,
registerCommands: {
registerGlobally: true,
registerToGuilds: []
}
},
messageCommand: {
enabled: true,
enableCooldown: true,
commandArgumentSeparator: ' ',
prefix: '!'
},
slashCommand: {
enabled: true,
enableCooldown: true,
acceptRepliedInteractions: false,
registerCommands: {
registerGlobally: true,
registerToGuilds: []
}
}
},
applicationCommandRegister: {
enabled: true,
allowRegisterGlobally: true,
allowRegisterToGuilds: true,
registerEmptyCommands: true,
registerToGuilds: []
},
client: {
intents: [
IntentsBitField.Flags.Guilds,
IntentsBitField.Flags.GuildMembers,
IntentsBitField.Flags.GuildMessages,
IntentsBitField.Flags.MessageContent,
]
},
logger: {
enabled: true,
debugmode: null,
coloredMessages: true,
disableLogPrefix: false,
logToFile: {
enabled: true,
logsFolder: './logs',
file: 'latest.log'
}
},
modules: {
dirs: ['./modules', './modules/Utils'],
exclude: [],
filter: file => true,
disableModuleVersionCheck: false
},
preconditions: [
CooldownPrecondition.create(),
CommandPermissionsPrecondition.create()
],
cooldownSweeperOptions: {
timer: 1000 * 60 * 60
},
checkForUpdates: true,
version: `^8.1.9`
};