create-reciple 7.10.3 → 7.10.5-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.
@@ -1,40 +1,40 @@
1
- import { ContextMenuCommandBuilder, MessageCommandBuilder, SlashCommandBuilder } from 'reciple';
2
- import { ApplicationCommandType } from 'discord.js';
3
-
4
- /**
5
- * @type {import('reciple').RecipleModuleScript}
6
- */
7
- export default {
8
- versions: ['^7'], // Module supports reciple client version 7
9
- commands: [
10
- // Right click a message to execute command
11
- new ContextMenuCommandBuilder()
12
- .setName(`Test Context Menu`)
13
- .setType(ApplicationCommandType.Message)
14
- .setExecute(async data => data.interaction.reply(`Hello!`)),
15
-
16
- // Send !test to execute command
17
- new MessageCommandBuilder()
18
- .setName(`test`)
19
- .setDescription(`Test message command`)
20
- .setAliases(`t`)
21
- .setExecute(async data => data.message.reply(`Test message command`)),
22
-
23
- // Use /test to execute command
24
- new SlashCommandBuilder()
25
- .setName(`test`)
26
- .setDescription(`Test slash command`)
27
- .setExecute(async data => data.interaction.reply(`Test slash command`))
28
- ],
29
-
30
- // Module resolved logic here (Bot not logged in)
31
- onStart(client) {
32
- return true;
33
- },
34
-
35
- // Module loaded logic here (Bot logged in)
36
- onLoad(client, module) {},
37
-
38
- // Unload logic here
39
- onUnload({ reason, client }) {}
40
- };
1
+ import { ContextMenuCommandBuilder, MessageCommandBuilder, SlashCommandBuilder } from 'reciple';
2
+ import { ApplicationCommandType } from 'discord.js';
3
+
4
+ /**
5
+ * @type {import('reciple').RecipleModuleScript}
6
+ */
7
+ export default {
8
+ versions: ['^7'], // Module supports reciple client version 7
9
+ commands: [
10
+ // Right click a message to execute command
11
+ new ContextMenuCommandBuilder()
12
+ .setName(`Test Context Menu`)
13
+ .setType(ApplicationCommandType.Message)
14
+ .setExecute(async data => data.interaction.reply(`Hello!`)),
15
+
16
+ // Send !test to execute command
17
+ new MessageCommandBuilder()
18
+ .setName(`test`)
19
+ .setDescription(`Test message command`)
20
+ .setAliases(`t`)
21
+ .setExecute(async data => data.message.reply(`Test message command`)),
22
+
23
+ // Use /test to execute command
24
+ new SlashCommandBuilder()
25
+ .setName(`test`)
26
+ .setDescription(`Test slash command`)
27
+ .setExecute(async data => data.interaction.reply(`Test slash command`))
28
+ ],
29
+
30
+ // Module resolved logic here (Bot not logged in)
31
+ onStart(client) {
32
+ return true;
33
+ },
34
+
35
+ // Module loaded logic here (Bot logged in)
36
+ onLoad(client, module) {},
37
+
38
+ // Unload logic here
39
+ onUnload({ reason, client }) {}
40
+ };
@@ -1,16 +1,16 @@
1
- {
2
- "name": "reciple-app",
3
- "private": true,
4
- "type": "module",
5
- "scripts": {
6
- "start": "BIN_EXEC reciple",
7
- "dev": "BIN_EXEC nodemon --exec \"SCRIPT_RUN start\" --watch ./modules --signal SIGHUP"
8
- },
9
- "dependencies": {
10
- "discord.js": "DISCORDJS",
11
- "reciple": "RECIPLE"
12
- },
13
- "devDependencies": {
14
- "nodemon": "NODEMON"
15
- }
1
+ {
2
+ "name": "reciple-app",
3
+ "private": true,
4
+ "type": "module",
5
+ "scripts": {
6
+ "start": "BIN_EXEC reciple",
7
+ "dev": "BIN_EXEC nodemon --exec \"SCRIPT_RUN start\" --watch ./modules --signal SIGHUP"
8
+ },
9
+ "dependencies": {
10
+ "discord.js": "DISCORDJS",
11
+ "reciple": "RECIPLE"
12
+ },
13
+ "devDependencies": {
14
+ "nodemon": "NODEMON"
15
+ }
16
16
  }
@@ -1,133 +1,133 @@
1
- # Logs
2
- logs
3
- *.log
4
- npm-debug.log*
5
- yarn-debug.log*
6
- yarn-error.log*
7
- lerna-debug.log*
8
- .pnpm-debug.log*
9
-
10
- # Diagnostic reports (https://nodejs.org/api/report.html)
11
- report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12
-
13
- # Runtime data
14
- pids
15
- *.pid
16
- *.seed
17
- *.pid.lock
18
-
19
- # Directory for instrumented libs generated by jscoverage/JSCover
20
- lib-cov
21
-
22
- # Docs files
23
- docs.json
24
-
25
- # Coverage directory used by tools like istanbul
26
- coverage
27
- *.lcov
28
-
29
- # nyc test coverage
30
- .nyc_output
31
-
32
- # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
33
- .grunt
34
-
35
- # Bower dependency directory (https://bower.io/)
36
- bower_components
37
-
38
- # node-waf configuration
39
- .lock-wscript
40
-
41
- # Compiled binary addons (https://nodejs.org/api/addons.html)
42
- build/Release
43
-
44
- # Dependency directories
45
- node_modules/
46
- jspm_packages/
47
-
48
- # Snowpack dependency directory (https://snowpack.dev/)
49
- web_modules/
50
-
51
- # TypeScript cache
52
- *.tsbuildinfo
53
-
54
- # Optional npm cache directory
55
- .npm
56
-
57
- # Optional eslint cache
58
- .eslintcache
59
-
60
- # Optional stylelint cache
61
- .stylelintcache
62
-
63
- # Microbundle cache
64
- .rpt2_cache/
65
- .rts2_cache_cjs/
66
- .rts2_cache_es/
67
- .rts2_cache_umd/
68
-
69
- # Optional REPL history
70
- .node_repl_history
71
-
72
- # Output of 'npm pack'
73
- *.tgz
74
-
75
- # Yarn Integrity file
76
- .yarn-integrity
77
-
78
- # dotenv environment variable files
79
- .env
80
- .env.development.local
81
- .env.test.local
82
- .env.production.local
83
- .env.local
84
-
85
- # parcel-bundler cache (https://parceljs.org/)
86
- .cache
87
- .parcel-cache
88
-
89
- # Next.js build output
90
- .next
91
- out
92
-
93
- # Nuxt.js build / generate output
94
- .nuxt
95
- dist
96
-
97
- # Gatsby files
98
- .cache/
99
- # Comment in the public line in if your project uses Gatsby and not Next.js
100
- # https://nextjs.org/blog/next-9-1#public-directory-support
101
- # public
102
-
103
- # vuepress build output
104
- .vuepress/dist
105
-
106
- # vuepress v2.x temp and cache directory
107
- .temp
108
- .cache
109
-
110
- # Serverless directories
111
- .serverless/
112
-
113
- # FuseBox cache
114
- .fusebox/
115
-
116
- # DynamoDB Local files
117
- .dynamodb/
118
-
119
- # TernJS port file
120
- .tern-port
121
-
122
- # Stores VSCode versions used for testing VSCode extensions
123
- .vscode-test
124
-
125
- # yarn v2
126
- .yarn/cache
127
- .yarn/unplugged
128
- .yarn/build-state.yml
129
- .yarn/install-state.gz
130
- .pnp.*
131
-
132
- # Output files
133
- modules
1
+ # Logs
2
+ logs
3
+ *.log
4
+ npm-debug.log*
5
+ yarn-debug.log*
6
+ yarn-error.log*
7
+ lerna-debug.log*
8
+ .pnpm-debug.log*
9
+
10
+ # Diagnostic reports (https://nodejs.org/api/report.html)
11
+ report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12
+
13
+ # Runtime data
14
+ pids
15
+ *.pid
16
+ *.seed
17
+ *.pid.lock
18
+
19
+ # Directory for instrumented libs generated by jscoverage/JSCover
20
+ lib-cov
21
+
22
+ # Docs files
23
+ docs.json
24
+
25
+ # Coverage directory used by tools like istanbul
26
+ coverage
27
+ *.lcov
28
+
29
+ # nyc test coverage
30
+ .nyc_output
31
+
32
+ # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
33
+ .grunt
34
+
35
+ # Bower dependency directory (https://bower.io/)
36
+ bower_components
37
+
38
+ # node-waf configuration
39
+ .lock-wscript
40
+
41
+ # Compiled binary addons (https://nodejs.org/api/addons.html)
42
+ build/Release
43
+
44
+ # Dependency directories
45
+ node_modules/
46
+ jspm_packages/
47
+
48
+ # Snowpack dependency directory (https://snowpack.dev/)
49
+ web_modules/
50
+
51
+ # TypeScript cache
52
+ *.tsbuildinfo
53
+
54
+ # Optional npm cache directory
55
+ .npm
56
+
57
+ # Optional eslint cache
58
+ .eslintcache
59
+
60
+ # Optional stylelint cache
61
+ .stylelintcache
62
+
63
+ # Microbundle cache
64
+ .rpt2_cache/
65
+ .rts2_cache_cjs/
66
+ .rts2_cache_es/
67
+ .rts2_cache_umd/
68
+
69
+ # Optional REPL history
70
+ .node_repl_history
71
+
72
+ # Output of 'npm pack'
73
+ *.tgz
74
+
75
+ # Yarn Integrity file
76
+ .yarn-integrity
77
+
78
+ # dotenv environment variable files
79
+ .env
80
+ .env.development.local
81
+ .env.test.local
82
+ .env.production.local
83
+ .env.local
84
+
85
+ # parcel-bundler cache (https://parceljs.org/)
86
+ .cache
87
+ .parcel-cache
88
+
89
+ # Next.js build output
90
+ .next
91
+ out
92
+
93
+ # Nuxt.js build / generate output
94
+ .nuxt
95
+ dist
96
+
97
+ # Gatsby files
98
+ .cache/
99
+ # Comment in the public line in if your project uses Gatsby and not Next.js
100
+ # https://nextjs.org/blog/next-9-1#public-directory-support
101
+ # public
102
+
103
+ # vuepress build output
104
+ .vuepress/dist
105
+
106
+ # vuepress v2.x temp and cache directory
107
+ .temp
108
+ .cache
109
+
110
+ # Serverless directories
111
+ .serverless/
112
+
113
+ # FuseBox cache
114
+ .fusebox/
115
+
116
+ # DynamoDB Local files
117
+ .dynamodb/
118
+
119
+ # TernJS port file
120
+ .tern-port
121
+
122
+ # Stores VSCode versions used for testing VSCode extensions
123
+ .vscode-test
124
+
125
+ # yarn v2
126
+ .yarn/cache
127
+ .yarn/unplugged
128
+ .yarn/build-state.yml
129
+ .yarn/install-state.gz
130
+ .pnp.*
131
+
132
+ # Output files
133
+ modules
@@ -1,20 +1,20 @@
1
- {
2
- "name": "reciple-app",
3
- "private": true,
4
- "scripts": {
5
- "build": "BIN_EXEC rimraf ./modules && BIN_EXEC tsc",
6
- "start": "BIN_EXEC reciple",
7
- "build:start": "SCRIPT_RUN build && SCRIPT_RUN start",
8
- "dev": "BIN_EXEC nodemon --watch src --ext ts,mts,cts --exec \"SCRIPT_RUN build:start\" --signal SIGHUP"
9
- },
10
- "dependencies": {
11
- "discord.js": "DISCORDJS",
12
- "reciple": "RECIPLE"
13
- },
14
- "devDependencies": {
15
- "@types/node": "^18.15.3",
16
- "nodemon": "NODEMON",
17
- "typescript": "TYPESCRIPT",
18
- "rimraf": "RIMRAF"
19
- }
1
+ {
2
+ "name": "reciple-app",
3
+ "private": true,
4
+ "scripts": {
5
+ "build": "BIN_EXEC rimraf ./modules && BIN_EXEC tsc",
6
+ "start": "BIN_EXEC reciple",
7
+ "build:start": "SCRIPT_RUN build && SCRIPT_RUN start",
8
+ "dev": "BIN_EXEC nodemon --watch src --ext ts,mts,cts --exec \"SCRIPT_RUN build:start\" --signal SIGHUP"
9
+ },
10
+ "dependencies": {
11
+ "discord.js": "DISCORDJS",
12
+ "reciple": "RECIPLE"
13
+ },
14
+ "devDependencies": {
15
+ "@types/node": "^18.15.3",
16
+ "nodemon": "NODEMON",
17
+ "typescript": "TYPESCRIPT",
18
+ "rimraf": "RIMRAF"
19
+ }
20
20
  }
@@ -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
  }