create-reciple 7.0.0-dev.18 → 7.0.0-dev.20

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.
@@ -1,16 +1,16 @@
1
- {
2
- "name": "reciple-app",
3
- "private": true,
4
- "scripts": {
5
- "build": "npx rimraf ./modules && npx tsc",
6
- "start": "npx reciple"
7
- },
8
- "dependencies": {
9
- "discord.js": "DISCORDJS",
10
- "reciple": "RECIPLE"
11
- },
12
- "devDependencies": {
13
- "typescript": "^4",
14
- "rimraf": "^4"
15
- }
1
+ {
2
+ "name": "reciple-app",
3
+ "private": true,
4
+ "scripts": {
5
+ "build": "npx rimraf ./modules && npx tsc",
6
+ "start": "npx reciple"
7
+ },
8
+ "dependencies": {
9
+ "discord.js": "DISCORDJS",
10
+ "reciple": "RECIPLE"
11
+ },
12
+ "devDependencies": {
13
+ "typescript": "^4",
14
+ "rimraf": "^4"
15
+ }
16
16
  }
@@ -1,43 +1,43 @@
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
+ 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,14 +1,14 @@
1
- {
2
- "include": ["./src/**/*"],
3
- "compilerOptions": {
4
- "rootDir": "./src",
5
- "outDir": "./modules",
6
- "target": "ES2020",
7
- "module": "Node16",
8
- "moduleResolution": "node16",
9
- "esModuleInterop": true,
10
- "skipLibCheck": true,
11
- "sourceMap": true,
12
- "strict": true
13
- }
1
+ {
2
+ "include": ["./src/**/*"],
3
+ "compilerOptions": {
4
+ "rootDir": "./src",
5
+ "outDir": "./modules",
6
+ "target": "ES2020",
7
+ "module": "Node16",
8
+ "moduleResolution": "node16",
9
+ "esModuleInterop": true,
10
+ "skipLibCheck": true,
11
+ "sourceMap": true,
12
+ "strict": true
13
+ }
14
14
  }
@@ -1,17 +1,17 @@
1
- {
2
- "name": "reciple-app",
3
- "private": true,
4
- "type": "module",
5
- "scripts": {
6
- "build": "npx rimraf ./modules && npx tsc",
7
- "start": "npx reciple"
8
- },
9
- "dependencies": {
10
- "discord.js": "DISCORDJS",
11
- "reciple": "RECIPLE"
12
- },
13
- "devDependencies": {
14
- "typescript": "^4",
15
- "rimraf": "^4"
16
- }
1
+ {
2
+ "name": "reciple-app",
3
+ "private": true,
4
+ "type": "module",
5
+ "scripts": {
6
+ "build": "npx rimraf ./modules && npx tsc",
7
+ "start": "npx reciple"
8
+ },
9
+ "dependencies": {
10
+ "discord.js": "DISCORDJS",
11
+ "reciple": "RECIPLE"
12
+ },
13
+ "devDependencies": {
14
+ "typescript": "^4",
15
+ "rimraf": "^4"
16
+ }
17
17
  }
@@ -1,43 +1,43 @@
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
+ 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,14 +1,14 @@
1
- {
2
- "include": ["./src/**/*"],
3
- "compilerOptions": {
4
- "rootDir": "./src",
5
- "outDir": "./modules",
6
- "target": "ES2020",
7
- "module": "Node16",
8
- "moduleResolution": "node16",
9
- "esModuleInterop": true,
10
- "skipLibCheck": true,
11
- "sourceMap": true,
12
- "strict": true
13
- }
1
+ {
2
+ "include": ["./src/**/*"],
3
+ "compilerOptions": {
4
+ "rootDir": "./src",
5
+ "outDir": "./modules",
6
+ "target": "ES2020",
7
+ "module": "Node16",
8
+ "moduleResolution": "node16",
9
+ "esModuleInterop": true,
10
+ "skipLibCheck": true,
11
+ "sourceMap": true,
12
+ "strict": true
13
+ }
14
14
  }
package/templates.json CHANGED
@@ -1,12 +1,12 @@
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
- }
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
12
  ]