create-commandkit 1.1.4-dev.20240202071331 → 1.1.4-dev.20240203223656

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-commandkit",
3
3
  "description": "Effortlessly create a CommandKit project",
4
- "version": "1.1.4-dev.20240202071331",
4
+ "version": "1.1.4-dev.20240203223656",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
7
7
  "bin": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  const { defineConfig } = require('commandkit');
2
2
 
3
3
  module.exports = defineConfig({
4
- src: 'src',
5
- main: 'index.js',
4
+ src: 'src',
5
+ main: 'index.js',
6
6
  });
@@ -1,14 +1,18 @@
1
- import type { CommandData, SlashCommandProps, CommandOptions } from 'commandkit';
1
+ import type {
2
+ CommandData,
3
+ SlashCommandProps,
4
+ CommandOptions,
5
+ } from 'commandkit';
2
6
 
3
7
  export const data: CommandData = {
4
- name: 'ping',
5
- description: 'Replies with Pong',
8
+ name: 'ping',
9
+ description: 'Replies with Pong',
6
10
  };
7
11
 
8
12
  export const run = ({ interaction }: SlashCommandProps) => {
9
- interaction.reply('Pong!');
13
+ interaction.reply('Pong!');
10
14
  };
11
15
 
12
16
  export const options: CommandOptions = {
13
- // https://commandkit.js.org/typedef/CommandOptions
17
+ // https://commandkit.js.org/typedef/CommandOptions
14
18
  };
@@ -1,5 +1,5 @@
1
1
  import type { Client } from 'discord.js';
2
2
 
3
3
  export default (client: Client<true>) => {
4
- console.log(`${client.user.tag} is online!`);
4
+ console.log(`${client.user.tag} is online!`);
5
5
  };
@@ -5,18 +5,18 @@ import { CommandKit } from 'commandkit';
5
5
  import { join } from 'node:path';
6
6
 
7
7
  const client = new Client({
8
- intents: [
9
- IntentsBitField.Flags.Guilds,
10
- IntentsBitField.Flags.GuildMembers,
11
- IntentsBitField.Flags.GuildMessages,
12
- IntentsBitField.Flags.MessageContent,
13
- ],
8
+ intents: [
9
+ IntentsBitField.Flags.Guilds,
10
+ IntentsBitField.Flags.GuildMembers,
11
+ IntentsBitField.Flags.GuildMessages,
12
+ IntentsBitField.Flags.MessageContent,
13
+ ],
14
14
  });
15
15
 
16
16
  new CommandKit({
17
- client,
18
- eventsPath: join(__dirname, 'events'),
19
- commandsPath: join(__dirname, 'commands'),
17
+ client,
18
+ eventsPath: join(__dirname, 'events'),
19
+ commandsPath: join(__dirname, 'commands'),
20
20
  });
21
21
 
22
22
  client.login(process.env.TOKEN);
@@ -1,20 +1,20 @@
1
1
  {
2
- "$schema": "https://json.schemastore.org/tsconfig",
3
- "compilerOptions": {
4
- "lib": ["ES2022"],
5
- "target": "ES2022",
6
- "moduleResolution": "Bundler",
7
- "module": "ES2022",
8
- "esModuleInterop": true,
9
- "resolveJsonModule": true,
10
- "skipLibCheck": true,
11
- "noUncheckedIndexedAccess": true,
12
- "removeComments": true,
13
- "allowJs": true,
14
- "strict": true,
15
- "noEmit": true,
16
- "declaration": false
17
- },
18
- "include": ["src"],
19
- "exclude": ["dist", "node_modules", ".commandkit"]
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "lib": ["ES2022"],
5
+ "target": "ES2022",
6
+ "moduleResolution": "Bundler",
7
+ "module": "ES2022",
8
+ "esModuleInterop": true,
9
+ "resolveJsonModule": true,
10
+ "skipLibCheck": true,
11
+ "noUncheckedIndexedAccess": true,
12
+ "removeComments": true,
13
+ "allowJs": true,
14
+ "strict": true,
15
+ "noEmit": true,
16
+ "declaration": false
17
+ },
18
+ "include": ["src"],
19
+ "exclude": ["dist", "node_modules", ".commandkit"]
20
20
  }
@@ -1,6 +1,6 @@
1
1
  import { defineConfig } from 'commandkit';
2
2
 
3
3
  export default defineConfig({
4
- src: 'src',
5
- main: 'index.js',
4
+ src: 'src',
5
+ main: 'index.js',
6
6
  });
@@ -1,14 +1,18 @@
1
- import type { CommandData, SlashCommandProps, CommandOptions } from 'commandkit';
1
+ import type {
2
+ CommandData,
3
+ SlashCommandProps,
4
+ CommandOptions,
5
+ } from 'commandkit';
2
6
 
3
7
  export const data: CommandData = {
4
- name: 'ping',
5
- description: 'Replies with Pong',
8
+ name: 'ping',
9
+ description: 'Replies with Pong',
6
10
  };
7
11
 
8
12
  export const run = ({ interaction }: SlashCommandProps) => {
9
- interaction.reply('Pong!');
13
+ interaction.reply('Pong!');
10
14
  };
11
15
 
12
16
  export const options: CommandOptions = {
13
- // https://commandkit.js.org/typedef/CommandOptions
17
+ // https://commandkit.js.org/typedef/CommandOptions
14
18
  };
@@ -1,5 +1,5 @@
1
1
  import type { Client } from 'discord.js';
2
2
 
3
3
  export default (client: Client<true>) => {
4
- console.log(`${client.user.tag} is online!`);
4
+ console.log(`${client.user.tag} is online!`);
5
5
  };
@@ -9,18 +9,18 @@ import { fileURLToPath } from 'node:url';
9
9
  const __dirname = dirname(fileURLToPath(import.meta.url));
10
10
 
11
11
  const client = new Client({
12
- intents: [
13
- IntentsBitField.Flags.Guilds,
14
- IntentsBitField.Flags.GuildMembers,
15
- IntentsBitField.Flags.GuildMessages,
16
- IntentsBitField.Flags.MessageContent,
17
- ],
12
+ intents: [
13
+ IntentsBitField.Flags.Guilds,
14
+ IntentsBitField.Flags.GuildMembers,
15
+ IntentsBitField.Flags.GuildMessages,
16
+ IntentsBitField.Flags.MessageContent,
17
+ ],
18
18
  });
19
19
 
20
20
  new CommandKit({
21
- client,
22
- eventsPath: join(__dirname, 'events'),
23
- commandsPath: join(__dirname, 'commands'),
21
+ client,
22
+ eventsPath: join(__dirname, 'events'),
23
+ commandsPath: join(__dirname, 'commands'),
24
24
  });
25
25
 
26
26
  client.login(process.env.TOKEN);
@@ -1,20 +1,20 @@
1
1
  {
2
- "$schema": "https://json.schemastore.org/tsconfig",
3
- "compilerOptions": {
4
- "lib": ["ES2022"],
5
- "target": "ES2022",
6
- "moduleResolution": "Bundler",
7
- "module": "ES2022",
8
- "esModuleInterop": true,
9
- "resolveJsonModule": true,
10
- "skipLibCheck": true,
11
- "noUncheckedIndexedAccess": true,
12
- "removeComments": true,
13
- "allowJs": true,
14
- "strict": true,
15
- "noEmit": true,
16
- "declaration": false
17
- },
18
- "include": ["src"],
19
- "exclude": ["dist", "node_modules", ".commandkit"]
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "lib": ["ES2022"],
5
+ "target": "ES2022",
6
+ "moduleResolution": "Bundler",
7
+ "module": "ES2022",
8
+ "esModuleInterop": true,
9
+ "resolveJsonModule": true,
10
+ "skipLibCheck": true,
11
+ "noUncheckedIndexedAccess": true,
12
+ "removeComments": true,
13
+ "allowJs": true,
14
+ "strict": true,
15
+ "noEmit": true,
16
+ "declaration": false
17
+ },
18
+ "include": ["src"],
19
+ "exclude": ["dist", "node_modules", ".commandkit"]
20
20
  }