create-reciple 8.5.2 → 8.6.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/LICENSE +674 -674
- package/assets/README.md +190 -190
- package/dist/bin.js +2 -2
- package/dist/bin.js.map +1 -1
- package/dist/utils/addons.js +2 -2
- package/dist/utils/addons.js.map +1 -1
- package/dist/utils/helpers.js +6 -6
- package/dist/utils/helpers.js.map +1 -1
- package/package.json +8 -8
- package/templates/cjs/dot.gitignore +130 -130
- package/templates/cjs/modules/example.js +49 -49
- package/templates/cjs/package.json +17 -17
- package/templates/cjs/template.json +3 -3
- package/templates/cts/dot.gitignore +133 -133
- package/templates/cts/package.json +21 -21
- package/templates/cts/src/example.ts +44 -44
- package/templates/cts/template.json +3 -3
- package/templates/cts/tsconfig.json +13 -13
- package/templates/mjs/dot.gitignore +130 -130
- package/templates/mjs/modules/example.js +47 -47
- package/templates/mjs/package.json +17 -17
- package/templates/mjs/template.json +3 -3
- package/templates/mts/dot.gitignore +133 -133
- package/templates/mts/package.json +21 -21
- package/templates/mts/src/example.ts +44 -44
- package/templates/mts/template.json +3 -3
- package/templates/mts/tsconfig.json +13 -13
|
@@ -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,22 +1,22 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "reciple-app",
|
|
3
|
-
"type": "module",
|
|
4
|
-
"private": true,
|
|
5
|
-
"scripts": {
|
|
6
|
-
"build": "rimraf ./modules && tsc",
|
|
7
|
-
"start": "reciple -c reciple.mjs",
|
|
8
|
-
"build:start": "SCRIPT_RUN build && reciple -c reciple.mjs",
|
|
9
|
-
"dev": "nodemon --ext ts,mts,cts,json --ignore ./modules --exec \"SCRIPT_RUN build && reciple -c reciple.mjs\" --signal SIGHUP"
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"@reciple/core": "RECIPLE_CORE",
|
|
13
|
-
"discord.js": "DISCORDJS",
|
|
14
|
-
"reciple": "RECIPLE"
|
|
15
|
-
},
|
|
16
|
-
"devDependencies": {
|
|
17
|
-
"@types/node": "TYPES_NODE",
|
|
18
|
-
"nodemon": "NODEMON",
|
|
19
|
-
"typescript": "TYPESCRIPT",
|
|
20
|
-
"rimraf": "RIMRAF"
|
|
21
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "reciple-app",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"private": true,
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "rimraf ./modules && tsc",
|
|
7
|
+
"start": "reciple -c reciple.mjs",
|
|
8
|
+
"build:start": "SCRIPT_RUN build && reciple -c reciple.mjs",
|
|
9
|
+
"dev": "nodemon --ext ts,mts,cts,json --ignore ./modules --exec \"SCRIPT_RUN build && reciple -c reciple.mjs\" --signal SIGHUP"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"@reciple/core": "RECIPLE_CORE",
|
|
13
|
+
"discord.js": "DISCORDJS",
|
|
14
|
+
"reciple": "RECIPLE"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@types/node": "TYPES_NODE",
|
|
18
|
+
"nodemon": "NODEMON",
|
|
19
|
+
"typescript": "TYPESCRIPT",
|
|
20
|
+
"rimraf": "RIMRAF"
|
|
21
|
+
}
|
|
22
22
|
}
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { SlashCommandBuilder, ContextMenuCommandBuilder, MessageCommandBuilder, RecipleModuleData } from 'reciple';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
// Supported client versions
|
|
5
|
-
versions: ['^8'],
|
|
6
|
-
|
|
7
|
-
// Module commands
|
|
8
|
-
commands: [
|
|
9
|
-
new ContextMenuCommandBuilder()
|
|
10
|
-
.setName('test')
|
|
11
|
-
.setType('Message')
|
|
12
|
-
.setExecute(async ({ interaction }) => {
|
|
13
|
-
await interaction.reply(`Hello, world!`);
|
|
14
|
-
}),
|
|
15
|
-
new MessageCommandBuilder()
|
|
16
|
-
.setName('test')
|
|
17
|
-
.setDescription('A test command')
|
|
18
|
-
.setExecute(async ({ message }) => {
|
|
19
|
-
await message.reply(`Hello, world!`);
|
|
20
|
-
}),
|
|
21
|
-
new SlashCommandBuilder()
|
|
22
|
-
.setName('test')
|
|
23
|
-
.setDescription('A test command')
|
|
24
|
-
.setExecute(async ({ interaction }) => {
|
|
25
|
-
await interaction.reply(`Hello, world!`);
|
|
26
|
-
})
|
|
27
|
-
],
|
|
28
|
-
|
|
29
|
-
// Executed when module is started (Bot is not logged in)
|
|
30
|
-
onStart: ({ client }) => {
|
|
31
|
-
return true; // Return true when the module is loaded, false if not
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
// Executed when module is loaded (Bot is logged in)
|
|
35
|
-
onLoad: ({ client }) => {
|
|
36
|
-
// Return/throw a string or error on load fail
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
// Executed when module is unloaded
|
|
41
|
-
onUnload: ({ client }) => {
|
|
42
|
-
// Return/throw a string or error on unload fail
|
|
43
|
-
}
|
|
44
|
-
} satisfies RecipleModuleData;
|
|
1
|
+
import { SlashCommandBuilder, ContextMenuCommandBuilder, MessageCommandBuilder, RecipleModuleData } from 'reciple';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
// Supported client versions
|
|
5
|
+
versions: ['^8'],
|
|
6
|
+
|
|
7
|
+
// Module commands
|
|
8
|
+
commands: [
|
|
9
|
+
new ContextMenuCommandBuilder()
|
|
10
|
+
.setName('test')
|
|
11
|
+
.setType('Message')
|
|
12
|
+
.setExecute(async ({ interaction }) => {
|
|
13
|
+
await interaction.reply(`Hello, world!`);
|
|
14
|
+
}),
|
|
15
|
+
new MessageCommandBuilder()
|
|
16
|
+
.setName('test')
|
|
17
|
+
.setDescription('A test command')
|
|
18
|
+
.setExecute(async ({ message }) => {
|
|
19
|
+
await message.reply(`Hello, world!`);
|
|
20
|
+
}),
|
|
21
|
+
new SlashCommandBuilder()
|
|
22
|
+
.setName('test')
|
|
23
|
+
.setDescription('A test command')
|
|
24
|
+
.setExecute(async ({ interaction }) => {
|
|
25
|
+
await interaction.reply(`Hello, world!`);
|
|
26
|
+
})
|
|
27
|
+
],
|
|
28
|
+
|
|
29
|
+
// Executed when module is started (Bot is not logged in)
|
|
30
|
+
onStart: ({ client }) => {
|
|
31
|
+
return true; // Return true when the module is loaded, false if not
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
// Executed when module is loaded (Bot is logged in)
|
|
35
|
+
onLoad: ({ client }) => {
|
|
36
|
+
// Return/throw a string or error on load fail
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
// Executed when module is unloaded
|
|
41
|
+
onUnload: ({ client }) => {
|
|
42
|
+
// Return/throw a string or error on unload fail
|
|
43
|
+
}
|
|
44
|
+
} satisfies RecipleModuleData;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "Typescript - ES Modules",
|
|
3
|
-
"language": "Typescript"
|
|
1
|
+
{
|
|
2
|
+
"name": "Typescript - ES Modules",
|
|
3
|
+
"language": "Typescript"
|
|
4
4
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
{
|
|
2
|
-
"include": ["./src/**/*"],
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"rootDir": "./src",
|
|
5
|
-
"outDir": "./modules",
|
|
6
|
-
"target": "ESNext",
|
|
7
|
-
"module": "NodeNext",
|
|
8
|
-
"moduleResolution": "NodeNext",
|
|
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": "ESNext",
|
|
7
|
+
"module": "NodeNext",
|
|
8
|
+
"moduleResolution": "NodeNext",
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"skipLibCheck": true,
|
|
11
|
+
"sourceMap": true,
|
|
12
|
+
"strict": true
|
|
13
|
+
}
|
|
14
14
|
}
|