create-reciple 9.3.0 → 9.3.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.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "create-reciple",
3
3
  "description": "A Reciple Discord bot project builder",
4
4
  "license": "GPL-3.0",
5
- "version": "9.3.0",
5
+ "version": "9.3.1",
6
6
  "type": "module",
7
7
  "types": "./dist/index.d.ts",
8
8
  "module": "./dist/index.js",
@@ -52,5 +52,5 @@
52
52
  "rimraf": "^5.0.7",
53
53
  "typescript": "^5.4.5"
54
54
  },
55
- "gitHead": "5aae9a4ed722547e40d270f27d3aaa4b119d47fd"
55
+ "gitHead": "dacca947b6d8d821260a597455d35d097448f0a5"
56
56
  }
@@ -1,44 +0,0 @@
1
- import { SlashCommandBuilder, ContextMenuCommandBuilder, MessageCommandBuilder, RecipleModuleData } from 'reciple';
2
-
3
- export default {
4
- // Supported client versions
5
- versions: ['^9'],
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;