File tree Expand file tree Collapse file tree 5 files changed +23
-4
lines changed
packages/create-jellycommands/src Expand file tree Collapse file tree 5 files changed +23
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' create-jellycommands ' : patch
3+ ---
4+
5+ add comments and switch to global dev mode
Original file line number Diff line number Diff 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 ( {
Original file line number Diff line number Diff line change @@ -3,18 +3,26 @@ import { JellyCommands } from 'jellycommands';
33import { Intents } from 'discord.js' ;
44
55const 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
2028client . login ( ) ;
Original file line number Diff line number Diff 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 ( {
Original file line number Diff line number Diff line change @@ -3,18 +3,26 @@ import { JellyCommands } from 'jellycommands';
33import { Intents } from 'discord.js' ;
44
55const 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
2028client . login ( ) ;
You can’t perform that action at this time.
0 commit comments