Skip to content

Commit 165aa38

Browse files
committed
chore: add comments and switch to global dev mode
1 parent 1844a28 commit 165aa38

File tree

5 files changed

+23
-4
lines changed

5 files changed

+23
-4
lines changed

.changeset/angry-radios-teach.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'create-jellycommands': patch
3+
---
4+
5+
add comments and switch to global dev mode

packages/create-jellycommands/src/js/src/commands/hello.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ export default command({
55
description: 'Testing that the bot works fine',
66

77
global: true,
8-
dev: true,
98

109
run: ({ interaction }) => {
1110
interaction.reply({

packages/create-jellycommands/src/js/src/index.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,26 @@ import { JellyCommands } from 'jellycommands';
33
import { Intents } from 'discord.js';
44

55
const client = new JellyCommands({
6+
// https://ghostdevbusiness.gitbook.io/jellycommands/commands/loading-commands
67
commands: 'src/commands',
8+
9+
// https://ghostdevbusiness.gitbook.io/jellycommands/events/loading-events
710
events: 'src/events',
811

912
clientOptions: {
1013
intents: [Intents.FLAGS.GUILDS],
1114
},
1215

1316
dev: {
17+
// In testing we should enable this, it will make all our commands register in our testing guild
18+
// https://ghostdevbusiness.gitbook.io/jellycommands/commands/dev-mode#global-dev-mode
19+
global: true,
20+
1421
// Put your testing guild id here
22+
// https://ghostdevbusiness.gitbook.io/jellycommands/commands/dev-mode#setting-dev-guilds
1523
guilds: [''],
1624
},
1725
});
1826

19-
// Auto reads the DISCORD_TOKEN environment variable
27+
// Automatically reads the DISCORD_TOKEN environment variable
2028
client.login();

packages/create-jellycommands/src/ts/src/commands/hello.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ export default command({
55
description: 'Testing that the bot works fine',
66

77
global: true,
8-
dev: true,
98

109
run: ({ interaction }) => {
1110
interaction.reply({

packages/create-jellycommands/src/ts/src/index.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,26 @@ import { JellyCommands } from 'jellycommands';
33
import { Intents } from 'discord.js';
44

55
const client = new JellyCommands({
6+
// https://ghostdevbusiness.gitbook.io/jellycommands/commands/loading-commands
67
commands: 'src/commands',
8+
9+
// https://ghostdevbusiness.gitbook.io/jellycommands/events/loading-events
710
events: 'src/events',
811

912
clientOptions: {
1013
intents: [Intents.FLAGS.GUILDS],
1114
},
1215

1316
dev: {
17+
// In testing we should enable this, it will make all our commands register in our testing guild
18+
// https://ghostdevbusiness.gitbook.io/jellycommands/commands/dev-mode#global-dev-mode
19+
global: true,
20+
1421
// Put your testing guild id here
22+
// https://ghostdevbusiness.gitbook.io/jellycommands/commands/dev-mode#setting-dev-guilds
1523
guilds: [''],
1624
},
1725
});
1826

19-
// Auto reads the DISCORD_TOKEN environment variable
27+
// Automatically reads the DISCORD_TOKEN environment variable
2028
client.login();

0 commit comments

Comments
 (0)