create-reciple 9.2.0 → 9.3.1
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/README.md +46 -46
- package/dist/classes/Addon.d.ts +25 -0
- package/dist/classes/Addon.js +25 -0
- package/dist/classes/Addon.js.map +1 -1
- package/dist/classes/Config.d.ts +29 -0
- package/dist/classes/Config.js +54 -0
- package/dist/classes/Config.js.map +1 -0
- package/dist/classes/Setup.d.ts +17 -0
- package/dist/classes/Setup.js +17 -0
- package/dist/classes/Setup.js.map +1 -1
- package/dist/classes/TemplateBuilder.d.ts +66 -0
- package/dist/classes/TemplateBuilder.js +82 -3
- package/dist/classes/TemplateBuilder.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/constants.js +1 -0
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/helpers.d.ts +27 -0
- package/dist/utils/helpers.js +27 -0
- package/dist/utils/helpers.js.map +1 -1
- package/package.json +5 -5
- package/templates/javascript/modules/commands/PingCommand.js +68 -0
- package/templates/javascript/modules/events/WelcomeEvent.js +54 -0
- package/templates/javascript/modules/halts/CommandErrorHalt.js +59 -0
- package/templates/javascript/modules/preconditions/ExamplePrecondition.js +27 -0
- package/templates/typescript/src/commands/PingCommand.ts +57 -0
- package/templates/typescript/src/events/WelcomeEvent.ts +42 -0
- package/templates/typescript/src/halts/CommandErrorHalt.ts +44 -0
- package/templates/typescript/src/preconditions/ExamplePrecondition.ts +18 -0
- package/templates/typescript/tsconfig.json +16 -13
- package/templates/javascript/modules/example.js +0 -48
- package/templates/typescript/src/example.ts +0 -44
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { SlashCommandBuilder, ContextMenuCommandBuilder, MessageCommandBuilder, RecipleModuleData } from 'reciple';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
// Supported client versions
|
|
5
|
-
versions: ['^9'],
|
|
6
|
-
|
|
7
|
-
// Module commands
|
|
8
|
-
commands: [
|
|
9
|
-
new ContextMenuCommandBuilder()
|
|
10
|
-
.setName('test')
|
|
11
|
-
.setType('Message')
|
|
12
|
-
.setExecute(async ({ interaction }) => {
|
|
13
|
-
await interaction.reply(`Hello, world!`);
|
|
14
|
-
}),
|
|
15
|
-
new MessageCommandBuilder()
|
|
16
|
-
.setName('test')
|
|
17
|
-
.setDescription('A test command')
|
|
18
|
-
.setExecute(async ({ message }) => {
|
|
19
|
-
await message.reply(`Hello, world!`);
|
|
20
|
-
}),
|
|
21
|
-
new SlashCommandBuilder()
|
|
22
|
-
.setName('test')
|
|
23
|
-
.setDescription('A test command')
|
|
24
|
-
.setExecute(async ({ interaction }) => {
|
|
25
|
-
await interaction.reply(`Hello, world!`);
|
|
26
|
-
})
|
|
27
|
-
],
|
|
28
|
-
|
|
29
|
-
// Executed when module is started (Bot is not logged in)
|
|
30
|
-
onStart: ({ client }) => {
|
|
31
|
-
return true; // Return true when the module is loaded, false if not
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
// Executed when module is loaded (Bot is logged in)
|
|
35
|
-
onLoad: ({ client }) => {
|
|
36
|
-
// Return/throw a string or error on load fail
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
// Executed when module is unloaded
|
|
41
|
-
onUnload: ({ client }) => {
|
|
42
|
-
// Return/throw a string or error on unload fail
|
|
43
|
-
}
|
|
44
|
-
} satisfies RecipleModuleData;
|