Skip to content

Commit

Permalink
chore: update dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostdevv committed Feb 24, 2023
1 parent 16a3c09 commit 85be3af
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions dev/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ import { IntentsBitField } from 'discord.js';
import ready from './events/ready.js';
import pog from './commands/pog.js';

const testGuild = process.env['TEST_GUILD'];

if (typeof testGuild !== 'string') {
throw new Error('Please add TEST_GUILD env variable');
}

const client = new JellyCommands({
// For testing loading commands by importing we have a file-loaded dir for each
commands: [pog, 'commands/file-loaded'],
Expand All @@ -15,13 +21,13 @@ const client = new JellyCommands({

dev: {
global: true,
guilds: [process.env['TEST_GUILD']],
guilds: [testGuild],
},

debug: true,

props: {
test: 'asd',
a: 'asd',
},
});

Expand Down

0 comments on commit 85be3af

Please sign in to comment.