create-reciple 7.11.14 → 8.0.0-dev.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.
Files changed (51) hide show
  1. package/dist/bin.js +105 -0
  2. package/dist/bin.js.map +1 -0
  3. package/dist/index.d.ts +3 -0
  4. package/dist/index.js +4 -0
  5. package/dist/index.js.map +1 -0
  6. package/{bin → dist}/utils/constants.d.ts +15 -7
  7. package/dist/utils/constants.js +60 -0
  8. package/dist/utils/constants.js.map +1 -0
  9. package/dist/utils/helpers.d.ts +12 -0
  10. package/dist/utils/helpers.js +103 -0
  11. package/dist/utils/helpers.js.map +1 -0
  12. package/dist/utils/types.d.ts +19 -0
  13. package/package.json +21 -14
  14. package/templates/{javascript-esm → cjs}/dot.gitignore +130 -130
  15. package/templates/cjs/modules/example.js +49 -0
  16. package/templates/{javascript → cjs}/package.json +3 -2
  17. package/templates/cjs/template.json +4 -0
  18. package/templates/{javascript → cts}/dot.gitignore +133 -130
  19. package/templates/{typescript → cts}/package.json +20 -19
  20. package/templates/cts/src/example.ts +44 -0
  21. package/templates/cts/template.json +4 -0
  22. package/templates/{typescript → cts}/tsconfig.json +13 -13
  23. package/templates/{typescript → mjs}/dot.gitignore +130 -133
  24. package/templates/mjs/modules/example.js +47 -0
  25. package/templates/{javascript-esm → mjs}/package.json +3 -3
  26. package/templates/mjs/template.json +4 -0
  27. package/templates/{typescript-esm → mts}/dot.gitignore +133 -133
  28. package/templates/{typescript-esm → mts}/package.json +20 -20
  29. package/templates/mts/src/example.ts +44 -0
  30. package/templates/mts/template.json +4 -0
  31. package/templates/{typescript-esm → mts}/tsconfig.json +13 -13
  32. package/assets/README.md +0 -257
  33. package/bin/bin.js +0 -95
  34. package/bin/bin.js.map +0 -1
  35. package/bin/create.d.ts +0 -2
  36. package/bin/create.js +0 -44
  37. package/bin/create.js.map +0 -1
  38. package/bin/utils/constants.js +0 -39
  39. package/bin/utils/constants.js.map +0 -1
  40. package/bin/utils/functions.d.ts +0 -3
  41. package/bin/utils/functions.js +0 -20
  42. package/bin/utils/functions.js.map +0 -1
  43. package/bin/utils/types.d.ts +0 -1
  44. package/templates/javascript/modules/example.js +0 -40
  45. package/templates/javascript-esm/modules/example.js +0 -40
  46. package/templates/typescript/src/example.ts +0 -43
  47. package/templates/typescript-esm/src/example.ts +0 -43
  48. package/templates.json +0 -12
  49. /package/{bin → dist}/bin.d.ts +0 -0
  50. /package/{bin → dist}/utils/types.js +0 -0
  51. /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
@@ -1,12 +0,0 @@
1
- [
2
- {
3
- "name": "Javascript",
4
- "description": "Uses Javascript as main language",
5
- "dir": "./templates/javascript"
6
- },
7
- {
8
- "name": "Typescript",
9
- "description": "Uses Typescript as main language",
10
- "dir": "./templates/typescript"
11
- }
12
- ]
File without changes
File without changes
File without changes