create-reciple 7.11.13 → 8.0.0-dev.0
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/dist/bin.d.ts +1 -0
- package/dist/bin.js +104 -0
- package/dist/bin.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/{bin → dist}/utils/constants.d.ts +15 -7
- package/dist/utils/constants.js +60 -0
- package/dist/utils/constants.js.map +1 -0
- package/dist/utils/helpers.d.ts +12 -0
- package/dist/utils/helpers.js +103 -0
- package/dist/utils/helpers.js.map +1 -0
- package/dist/utils/types.d.ts +19 -0
- package/package.json +19 -12
- package/templates/{javascript-esm → cjs}/dot.gitignore +130 -130
- package/templates/cjs/modules/example.js +49 -0
- package/templates/{javascript → cjs}/package.json +3 -2
- package/templates/cjs/template.json +4 -0
- package/templates/{javascript → cts}/dot.gitignore +133 -130
- package/templates/{typescript → cts}/package.json +20 -19
- package/templates/cts/src/example.ts +44 -0
- package/templates/cts/template.json +4 -0
- package/templates/{typescript → cts}/tsconfig.json +13 -13
- package/templates/{typescript → mjs}/dot.gitignore +130 -133
- package/templates/mjs/modules/example.js +47 -0
- package/templates/{javascript-esm → mjs}/package.json +3 -3
- package/templates/mjs/template.json +4 -0
- package/templates/{typescript-esm → mts}/dot.gitignore +133 -133
- package/templates/{typescript-esm → mts}/package.json +20 -20
- package/templates/mts/src/example.ts +44 -0
- package/templates/mts/template.json +4 -0
- package/templates/{typescript-esm → mts}/tsconfig.json +13 -13
- package/assets/README.md +0 -257
- package/bin/bin.d.ts +0 -2
- package/bin/bin.js +0 -95
- package/bin/bin.js.map +0 -1
- package/bin/create.d.ts +0 -2
- package/bin/create.js +0 -44
- package/bin/create.js.map +0 -1
- package/bin/utils/constants.js +0 -39
- package/bin/utils/constants.js.map +0 -1
- package/bin/utils/functions.d.ts +0 -3
- package/bin/utils/functions.js +0 -20
- package/bin/utils/functions.js.map +0 -1
- package/bin/utils/types.d.ts +0 -1
- package/templates/javascript/modules/example.js +0 -40
- package/templates/javascript-esm/modules/example.js +0 -40
- package/templates/typescript/src/example.ts +0 -43
- package/templates/typescript-esm/src/example.ts +0 -43
- package/templates.json +0 -12
- /package/{bin → dist}/utils/types.js +0 -0
- /package/{bin → dist}/utils/types.js.map +0 -0
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { ContextMenuCommandBuilder, MessageCommandBuilder, RecipleModuleScript, SlashCommandBuilder } from 'reciple';
|
|
2
|
-
import { ApplicationCommandType } from 'discord.js';
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
versions: ['^7'], // Module supports reciple client version 7
|
|
6
|
-
commands: [
|
|
7
|
-
// Right click a message to execute command
|
|
8
|
-
new ContextMenuCommandBuilder()
|
|
9
|
-
.setName(`Test Context Menu`)
|
|
10
|
-
.setType(ApplicationCommandType.Message)
|
|
11
|
-
.setExecute(async data => {
|
|
12
|
-
await data.interaction.reply(`Hello!`);
|
|
13
|
-
}),
|
|
14
|
-
|
|
15
|
-
// Send !test to execute command
|
|
16
|
-
new MessageCommandBuilder()
|
|
17
|
-
.setName(`test`)
|
|
18
|
-
.setDescription(`Test message command`)
|
|
19
|
-
.setAliases(`t`)
|
|
20
|
-
.setExecute(async data => {
|
|
21
|
-
await data.message.reply(`Test message command`);
|
|
22
|
-
}),
|
|
23
|
-
|
|
24
|
-
// Use /test to execute command
|
|
25
|
-
new SlashCommandBuilder()
|
|
26
|
-
.setName(`test`)
|
|
27
|
-
.setDescription(`Test slash command`)
|
|
28
|
-
.setExecute(async data => {
|
|
29
|
-
await data.interaction.reply(`Test slash command`);
|
|
30
|
-
})
|
|
31
|
-
],
|
|
32
|
-
|
|
33
|
-
// Module resolved logic here (Bot not logged in)
|
|
34
|
-
onStart(client) {
|
|
35
|
-
return true;
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
// Module loaded logic here (Bot logged in)
|
|
39
|
-
onLoad(client, module_) {},
|
|
40
|
-
|
|
41
|
-
// Unload logic here
|
|
42
|
-
onUnload({ reason, client }) {}
|
|
43
|
-
} satisfies RecipleModuleScript;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { ContextMenuCommandBuilder, MessageCommandBuilder, RecipleModuleScript, SlashCommandBuilder } from 'reciple';
|
|
2
|
-
import { ApplicationCommandType } from 'discord.js';
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
versions: ['^7'], // Module supports reciple client version 7
|
|
6
|
-
commands: [
|
|
7
|
-
// Right click a message to execute command
|
|
8
|
-
new ContextMenuCommandBuilder()
|
|
9
|
-
.setName(`Test Context Menu`)
|
|
10
|
-
.setType(ApplicationCommandType.Message)
|
|
11
|
-
.setExecute(async data => {
|
|
12
|
-
await data.interaction.reply(`Hello!`);
|
|
13
|
-
}),
|
|
14
|
-
|
|
15
|
-
// Send !test to execute command
|
|
16
|
-
new MessageCommandBuilder()
|
|
17
|
-
.setName(`test`)
|
|
18
|
-
.setDescription(`Test message command`)
|
|
19
|
-
.setAliases(`t`)
|
|
20
|
-
.setExecute(async data => {
|
|
21
|
-
await data.message.reply(`Test message command`);
|
|
22
|
-
}),
|
|
23
|
-
|
|
24
|
-
// Use /test to execute command
|
|
25
|
-
new SlashCommandBuilder()
|
|
26
|
-
.setName(`test`)
|
|
27
|
-
.setDescription(`Test slash command`)
|
|
28
|
-
.setExecute(async data => {
|
|
29
|
-
await data.interaction.reply(`Test slash command`);
|
|
30
|
-
})
|
|
31
|
-
],
|
|
32
|
-
|
|
33
|
-
// Module resolved logic here (Bot not logged in)
|
|
34
|
-
onStart(client) {
|
|
35
|
-
return true;
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
// Module loaded logic here (Bot logged in)
|
|
39
|
-
onLoad(client, module_) {},
|
|
40
|
-
|
|
41
|
-
// Unload logic here
|
|
42
|
-
onUnload({ reason, client }) {}
|
|
43
|
-
} satisfies RecipleModuleScript;
|
package/templates.json
DELETED
|
File without changes
|
|
File without changes
|