reciple 6.0.0-dev.23 → 6.0.0-dev.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +674 -674
- package/README.md +183 -183
- package/dist/lib/bin.mjs +66 -65
- package/dist/lib/esm.mjs +1 -1
- package/dist/lib/index.js +33 -35
- package/dist/lib/reciple/classes/RecipleClient.js +296 -296
- package/dist/lib/reciple/classes/RecipleConfig.js +106 -106
- package/dist/lib/reciple/classes/RecipleModule.js +94 -94
- package/dist/lib/reciple/classes/builders/MessageCommandBuilder.js +309 -325
- package/dist/lib/reciple/classes/builders/MessageCommandOptionBuilder.js +126 -107
- package/dist/lib/reciple/classes/builders/SlashCommandBuilder.js +246 -246
- package/dist/lib/reciple/classes/managers/ApplicationCommandManager.js +178 -178
- package/dist/lib/reciple/classes/managers/CommandCooldownManager.js +99 -100
- package/dist/lib/reciple/classes/managers/CommandManager.js +59 -59
- package/dist/lib/reciple/classes/managers/MessageCommandOptionManager.js +25 -25
- package/dist/lib/reciple/classes/managers/ModuleManager.js +176 -179
- package/dist/lib/reciple/flags.js +31 -31
- package/dist/lib/reciple/permissions.js +30 -30
- package/dist/lib/reciple/types/builders.js +11 -11
- package/dist/lib/reciple/types/commands.js +15 -15
- package/dist/lib/reciple/types/paramOptions.js +2 -2
- package/dist/lib/reciple/util.js +69 -68
- package/dist/lib/reciple/version.js +47 -47
- package/dist/types/bin.d.mts +2 -2
- package/dist/types/esm.d.mts +1 -1
- package/dist/types/index.d.ts +17 -19
- package/dist/types/reciple/classes/RecipleClient.d.ts +104 -103
- package/dist/types/reciple/classes/RecipleConfig.d.ts +100 -100
- package/dist/types/reciple/classes/RecipleModule.d.ts +56 -56
- package/dist/types/reciple/classes/builders/MessageCommandBuilder.d.ts +189 -184
- package/dist/types/reciple/classes/builders/MessageCommandOptionBuilder.d.ts +53 -51
- package/dist/types/reciple/classes/builders/SlashCommandBuilder.d.ts +98 -98
- package/dist/types/reciple/classes/managers/ApplicationCommandManager.d.ts +53 -53
- package/dist/types/reciple/classes/managers/CommandCooldownManager.d.ts +70 -70
- package/dist/types/reciple/classes/managers/CommandManager.d.ts +34 -36
- package/dist/types/reciple/classes/managers/MessageCommandOptionManager.d.ts +22 -22
- package/dist/types/reciple/classes/managers/ModuleManager.d.ts +49 -49
- package/dist/types/reciple/flags.d.ts +17 -17
- package/dist/types/reciple/permissions.d.ts +15 -19
- package/dist/types/reciple/types/builders.d.ts +205 -197
- package/dist/types/reciple/types/commands.d.ts +81 -81
- package/dist/types/reciple/types/paramOptions.d.ts +101 -101
- package/dist/types/reciple/util.d.ts +26 -23
- package/dist/types/reciple/version.d.ts +25 -25
- package/package.json +21 -20
- package/resource/reciple.yml +120 -120
package/resource/reciple.yml
CHANGED
|
@@ -1,120 +1,120 @@
|
|
|
1
|
-
# Your bot token here
|
|
2
|
-
# To use env variable as a token just do it like this env:TOKEN_ENV
|
|
3
|
-
token: TOKEN
|
|
4
|
-
|
|
5
|
-
# Commands options
|
|
6
|
-
commands:
|
|
7
|
-
# Interaction command options
|
|
8
|
-
slashCommand:
|
|
9
|
-
# enable interaction commands
|
|
10
|
-
enabled: true
|
|
11
|
-
# reply when an error occured
|
|
12
|
-
replyOnError: false
|
|
13
|
-
# enable the use of command cooldowns
|
|
14
|
-
enableCooldown: true
|
|
15
|
-
# register interaction commands on bot ready
|
|
16
|
-
registerCommands: true
|
|
17
|
-
# allow register empty list of application commands
|
|
18
|
-
allowRegisterEmptyCommandList: true
|
|
19
|
-
# set required permissions for interaction commands
|
|
20
|
-
setRequiredPermissions: true
|
|
21
|
-
# accept replied or deffered command interaction
|
|
22
|
-
acceptRepliedInteractions: false
|
|
23
|
-
# register commands to specific guild(s) empty to make it global
|
|
24
|
-
guilds: []
|
|
25
|
-
# overwrite command permissions
|
|
26
|
-
permissions:
|
|
27
|
-
# enable overwriten command permissions
|
|
28
|
-
enabled: false
|
|
29
|
-
commands:
|
|
30
|
-
- command: example-command
|
|
31
|
-
permissions:
|
|
32
|
-
- Administrator
|
|
33
|
-
|
|
34
|
-
# message command options
|
|
35
|
-
messageCommand:
|
|
36
|
-
# enable message commands
|
|
37
|
-
enabled: true
|
|
38
|
-
# command prefix
|
|
39
|
-
prefix: '!'
|
|
40
|
-
# reply when an error occured
|
|
41
|
-
replyOnError: false
|
|
42
|
-
# enable the use of command cooldowns
|
|
43
|
-
enableCooldown: true
|
|
44
|
-
# allow executing commands via aliases
|
|
45
|
-
allowCommandAlias: true
|
|
46
|
-
# command argument separator
|
|
47
|
-
commandArgumentSeparator: ' '
|
|
48
|
-
# overwrite command permissions
|
|
49
|
-
permissions:
|
|
50
|
-
# enable overwriten command permissions
|
|
51
|
-
enabled: false
|
|
52
|
-
commands:
|
|
53
|
-
- command: example-command
|
|
54
|
-
permissions:
|
|
55
|
-
- Administrator
|
|
56
|
-
|
|
57
|
-
# Logger options
|
|
58
|
-
fileLogging:
|
|
59
|
-
# enable console output to file
|
|
60
|
-
enabled: true
|
|
61
|
-
# enable debug mode
|
|
62
|
-
debugmode: false
|
|
63
|
-
# enable if reciple will use the logger
|
|
64
|
-
clientLogs: true
|
|
65
|
-
# stringify logged JSONs
|
|
66
|
-
stringifyLoggedJSON: false
|
|
67
|
-
# log file path
|
|
68
|
-
logFilePath: logs/latest.log
|
|
69
|
-
|
|
70
|
-
# Client options
|
|
71
|
-
# Learn more about client options at https://discord.js.org/#/docs/discord.js/main/typedef/ClientOptions
|
|
72
|
-
client:
|
|
73
|
-
intents:
|
|
74
|
-
- Guilds
|
|
75
|
-
- GuildMembers
|
|
76
|
-
- GuildMessages
|
|
77
|
-
- MessageContent
|
|
78
|
-
|
|
79
|
-
# Bot messages
|
|
80
|
-
messages:
|
|
81
|
-
missingArguments: Not enough arguments.
|
|
82
|
-
invalidArguments: Invalid argument(s) given.
|
|
83
|
-
insufficientBotPerms:
|
|
84
|
-
content: Insufficient bot permissions.
|
|
85
|
-
ephemeral: true
|
|
86
|
-
noPermissions:
|
|
87
|
-
content: You do not have permission to use this command.
|
|
88
|
-
ephemeral: true
|
|
89
|
-
cooldown:
|
|
90
|
-
content: You cannot execute this command right now due to the cooldown.
|
|
91
|
-
ephemeral: true
|
|
92
|
-
error:
|
|
93
|
-
content: An error occurred.
|
|
94
|
-
ephemeral: true
|
|
95
|
-
|
|
96
|
-
# Ignored Files
|
|
97
|
-
ignoredFiles:
|
|
98
|
-
- '_*'
|
|
99
|
-
- '.*'
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
####################################################
|
|
103
|
-
# #
|
|
104
|
-
# ##### ##### # # ### ##### #### #
|
|
105
|
-
# # # # # # # # # # # # #
|
|
106
|
-
# # # ##### # # # # ### ### #### #
|
|
107
|
-
# # # # # # # # # # # # #
|
|
108
|
-
# ### # # # # ### ##### # # #
|
|
109
|
-
# #
|
|
110
|
-
####################################################
|
|
111
|
-
## Modifying the values below could break reciple ##
|
|
112
|
-
|
|
113
|
-
# Modules folder
|
|
114
|
-
modulesFolder: 'modules'
|
|
115
|
-
|
|
116
|
-
# Load modules regardless of its supported versions
|
|
117
|
-
disableVersionCheck: false
|
|
118
|
-
|
|
119
|
-
# Current version
|
|
120
|
-
version: ^VERSION
|
|
1
|
+
# Your bot token here
|
|
2
|
+
# To use env variable as a token just do it like this env:TOKEN_ENV
|
|
3
|
+
token: TOKEN
|
|
4
|
+
|
|
5
|
+
# Commands options
|
|
6
|
+
commands:
|
|
7
|
+
# Interaction command options
|
|
8
|
+
slashCommand:
|
|
9
|
+
# enable interaction commands
|
|
10
|
+
enabled: true
|
|
11
|
+
# reply when an error occured
|
|
12
|
+
replyOnError: false
|
|
13
|
+
# enable the use of command cooldowns
|
|
14
|
+
enableCooldown: true
|
|
15
|
+
# register interaction commands on bot ready
|
|
16
|
+
registerCommands: true
|
|
17
|
+
# allow register empty list of application commands
|
|
18
|
+
allowRegisterEmptyCommandList: true
|
|
19
|
+
# set required permissions for interaction commands
|
|
20
|
+
setRequiredPermissions: true
|
|
21
|
+
# accept replied or deffered command interaction
|
|
22
|
+
acceptRepliedInteractions: false
|
|
23
|
+
# register commands to specific guild(s) empty to make it global
|
|
24
|
+
guilds: []
|
|
25
|
+
# overwrite command permissions
|
|
26
|
+
permissions:
|
|
27
|
+
# enable overwriten command permissions
|
|
28
|
+
enabled: false
|
|
29
|
+
commands:
|
|
30
|
+
- command: example-command
|
|
31
|
+
permissions:
|
|
32
|
+
- Administrator
|
|
33
|
+
|
|
34
|
+
# message command options
|
|
35
|
+
messageCommand:
|
|
36
|
+
# enable message commands
|
|
37
|
+
enabled: true
|
|
38
|
+
# command prefix
|
|
39
|
+
prefix: '!'
|
|
40
|
+
# reply when an error occured
|
|
41
|
+
replyOnError: false
|
|
42
|
+
# enable the use of command cooldowns
|
|
43
|
+
enableCooldown: true
|
|
44
|
+
# allow executing commands via aliases
|
|
45
|
+
allowCommandAlias: true
|
|
46
|
+
# command argument separator
|
|
47
|
+
commandArgumentSeparator: ' '
|
|
48
|
+
# overwrite command permissions
|
|
49
|
+
permissions:
|
|
50
|
+
# enable overwriten command permissions
|
|
51
|
+
enabled: false
|
|
52
|
+
commands:
|
|
53
|
+
- command: example-command
|
|
54
|
+
permissions:
|
|
55
|
+
- Administrator
|
|
56
|
+
|
|
57
|
+
# Logger options
|
|
58
|
+
fileLogging:
|
|
59
|
+
# enable console output to file
|
|
60
|
+
enabled: true
|
|
61
|
+
# enable debug mode
|
|
62
|
+
debugmode: false
|
|
63
|
+
# enable if reciple will use the logger
|
|
64
|
+
clientLogs: true
|
|
65
|
+
# stringify logged JSONs
|
|
66
|
+
stringifyLoggedJSON: false
|
|
67
|
+
# log file path
|
|
68
|
+
logFilePath: logs/latest.log
|
|
69
|
+
|
|
70
|
+
# Client options
|
|
71
|
+
# Learn more about client options at https://discord.js.org/#/docs/discord.js/main/typedef/ClientOptions
|
|
72
|
+
client:
|
|
73
|
+
intents:
|
|
74
|
+
- Guilds
|
|
75
|
+
- GuildMembers
|
|
76
|
+
- GuildMessages
|
|
77
|
+
- MessageContent
|
|
78
|
+
|
|
79
|
+
# Bot messages
|
|
80
|
+
messages:
|
|
81
|
+
missingArguments: Not enough arguments.
|
|
82
|
+
invalidArguments: Invalid argument(s) given.
|
|
83
|
+
insufficientBotPerms:
|
|
84
|
+
content: Insufficient bot permissions.
|
|
85
|
+
ephemeral: true
|
|
86
|
+
noPermissions:
|
|
87
|
+
content: You do not have permission to use this command.
|
|
88
|
+
ephemeral: true
|
|
89
|
+
cooldown:
|
|
90
|
+
content: You cannot execute this command right now due to the cooldown.
|
|
91
|
+
ephemeral: true
|
|
92
|
+
error:
|
|
93
|
+
content: An error occurred.
|
|
94
|
+
ephemeral: true
|
|
95
|
+
|
|
96
|
+
# Ignored Files
|
|
97
|
+
ignoredFiles:
|
|
98
|
+
- '_*'
|
|
99
|
+
- '.*'
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
####################################################
|
|
103
|
+
# #
|
|
104
|
+
# ##### ##### # # ### ##### #### #
|
|
105
|
+
# # # # # # # # # # # # #
|
|
106
|
+
# # # ##### # # # # ### ### #### #
|
|
107
|
+
# # # # # # # # # # # # #
|
|
108
|
+
# ### # # # # ### ##### # # #
|
|
109
|
+
# #
|
|
110
|
+
####################################################
|
|
111
|
+
## Modifying the values below could break reciple ##
|
|
112
|
+
|
|
113
|
+
# Modules folder
|
|
114
|
+
modulesFolder: 'modules'
|
|
115
|
+
|
|
116
|
+
# Load modules regardless of its supported versions
|
|
117
|
+
disableVersionCheck: false
|
|
118
|
+
|
|
119
|
+
# Current version
|
|
120
|
+
version: ^VERSION
|