create-commandkit 1.1.4-dev.20240202071546 → 1.2.0-next-beta.20240202071010

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.20240202071546",
4
+ "version": "1.2.0-next-beta.20240202071010",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
7
7
  "bin": "./dist/index.js",
@@ -1,10 +0,0 @@
1
- # Welcome to CommandKit
2
-
3
- > This project was generated by [create-commandkit](https://npmjs.com/package/create-commandkit).
4
-
5
- Thanks for choosing CommandKit to build your Discord bot!
6
-
7
- ## Useful links
8
-
9
- - [Documentation](https://commandkit.js.org)
10
- - [Discord](https://ctrl.lol/discord)
@@ -1,6 +0,0 @@
1
- const { defineConfig } = require('commandkit');
2
-
3
- module.exports = defineConfig({
4
- src: 'src',
5
- main: 'index.js',
6
- });
@@ -1,18 +0,0 @@
1
- import type {
2
- CommandData,
3
- SlashCommandProps,
4
- CommandOptions,
5
- } from 'commandkit';
6
-
7
- export const data: CommandData = {
8
- name: 'ping',
9
- description: 'Replies with Pong',
10
- };
11
-
12
- export const run = ({ interaction }: SlashCommandProps) => {
13
- interaction.reply('Pong!');
14
- };
15
-
16
- export const options: CommandOptions = {
17
- // https://commandkit.js.org/typedef/CommandOptions
18
- };
@@ -1,5 +0,0 @@
1
- import type { Client } from 'discord.js';
2
-
3
- export default (client: Client<true>) => {
4
- console.log(`${client.user.tag} is online!`);
5
- };
@@ -1,22 +0,0 @@
1
- import 'dotenv/config';
2
-
3
- import { Client, IntentsBitField } from 'discord.js';
4
- import { CommandKit } from 'commandkit';
5
- import { join } from 'node:path';
6
-
7
- const client = new Client({
8
- intents: [
9
- IntentsBitField.Flags.Guilds,
10
- IntentsBitField.Flags.GuildMembers,
11
- IntentsBitField.Flags.GuildMessages,
12
- IntentsBitField.Flags.MessageContent,
13
- ],
14
- });
15
-
16
- new CommandKit({
17
- client,
18
- eventsPath: join(__dirname, 'events'),
19
- commandsPath: join(__dirname, 'commands'),
20
- });
21
-
22
- client.login(process.env.TOKEN);
@@ -1,20 +0,0 @@
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"]
20
- }
@@ -1,10 +0,0 @@
1
- # Welcome to CommandKit
2
-
3
- > This project was generated by [create-commandkit](https://npmjs.com/package/create-commandkit).
4
-
5
- Thanks for choosing CommandKit to build your Discord bot!
6
-
7
- ## Useful links
8
-
9
- - [Documentation](https://commandkit.js.org)
10
- - [Discord](https://ctrl.lol/discord)
@@ -1,6 +0,0 @@
1
- import { defineConfig } from 'commandkit';
2
-
3
- export default defineConfig({
4
- src: 'src',
5
- main: 'index.js',
6
- });
@@ -1,18 +0,0 @@
1
- import type {
2
- CommandData,
3
- SlashCommandProps,
4
- CommandOptions,
5
- } from 'commandkit';
6
-
7
- export const data: CommandData = {
8
- name: 'ping',
9
- description: 'Replies with Pong',
10
- };
11
-
12
- export const run = ({ interaction }: SlashCommandProps) => {
13
- interaction.reply('Pong!');
14
- };
15
-
16
- export const options: CommandOptions = {
17
- // https://commandkit.js.org/typedef/CommandOptions
18
- };
@@ -1,5 +0,0 @@
1
- import type { Client } from 'discord.js';
2
-
3
- export default (client: Client<true>) => {
4
- console.log(`${client.user.tag} is online!`);
5
- };
@@ -1,26 +0,0 @@
1
- import 'dotenv/config';
2
-
3
- import { Client, IntentsBitField } from 'discord.js';
4
- import { CommandKit } from 'commandkit';
5
-
6
- import { join, dirname } from 'node:path';
7
- import { fileURLToPath } from 'node:url';
8
-
9
- const __dirname = dirname(fileURLToPath(import.meta.url));
10
-
11
- const client = new Client({
12
- intents: [
13
- IntentsBitField.Flags.Guilds,
14
- IntentsBitField.Flags.GuildMembers,
15
- IntentsBitField.Flags.GuildMessages,
16
- IntentsBitField.Flags.MessageContent,
17
- ],
18
- });
19
-
20
- new CommandKit({
21
- client,
22
- eventsPath: join(__dirname, 'events'),
23
- commandsPath: join(__dirname, 'commands'),
24
- });
25
-
26
- client.login(process.env.TOKEN);
@@ -1,20 +0,0 @@
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"]
20
- }