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