diff --git a/template-js-esm/src/index.js b/template-js-esm/src/index.js index f7eb9bf..e9e914b 100644 --- a/template-js-esm/src/index.js +++ b/template-js-esm/src/index.js @@ -20,16 +20,14 @@ const client = new Client({ * This is used for external event modules as well */ await makeDependencies({ - build: (root) => - root - .add({ '@sern/client': single(() => client) }) + build: (root) => root.add({ '@sern/client': single(() => client) }), }); //View docs for all options Sern.init({ defaultPrefix: '!', // removing defaultPrefix will shut down text commands commands: 'src/commands', - // events: 'src/events' (optional), + // events: 'src/events', //(optional) }); client.login(); diff --git a/template-js/src/index.js b/template-js/src/index.js index 1dc4070..925cc44 100644 --- a/template-js/src/index.js +++ b/template-js/src/index.js @@ -21,17 +21,16 @@ const client = new Client({ */ async function init() { - await makeDependencies({ - build: (root) => - root.add({ '@sern/client': single(() => client) }) - }); + await makeDependencies({ + build: (root) => root.add({ '@sern/client': single(() => client) }), + }); - //View docs for all options - Sern.init({ - defaultPrefix: '!', // removing defaultPrefix will shut down text commands - commands: 'src/commands', - // events: 'src/events' (optional), - }); + //View docs for all options + Sern.init({ + defaultPrefix: '!', // removing defaultPrefix will shut down text commands + commands: 'src/commands', + // events: 'src/events', //(optional) + }); } init(); diff --git a/template-ts-esm/src/index.ts b/template-ts-esm/src/index.ts index 37af360..d79c84b 100644 --- a/template-ts-esm/src/index.ts +++ b/template-ts-esm/src/index.ts @@ -1,9 +1,5 @@ import { Client, GatewayIntentBits } from 'discord.js'; -import { - Sern, - makeDependencies, - single, -} from '@sern/handler'; +import { Sern, makeDependencies, single } from '@sern/handler'; const client = new Client({ intents: [ @@ -24,15 +20,14 @@ const client = new Client({ * This is used for external event modules as well */ await makeDependencies({ - build: (root) => - root.add({ '@sern/client': single(() => client) }) + build: (root) => root.add({ '@sern/client': single(() => client) }), }); //View docs for all options Sern.init({ defaultPrefix: '!', // removing defaultPrefix will shut down text commands commands: 'dist/commands', - // events: 'dist/events' (optional), + // events: 'dist/events', //(optional) }); client.login(); diff --git a/template-ts/src/index.ts b/template-ts/src/index.ts index 6c34015..eef4a50 100644 --- a/template-ts/src/index.ts +++ b/template-ts/src/index.ts @@ -1,9 +1,5 @@ import { Client, GatewayIntentBits } from 'discord.js'; -import { - Sern, - single, - makeDependencies -} from '@sern/handler'; +import { Sern, single, makeDependencies } from '@sern/handler'; const client = new Client({ intents: [ @@ -24,18 +20,16 @@ const client = new Client({ * This is used for external event modules as well */ async function init() { - await makeDependencies({ - build: (root) => - root.add({ '@sern/client': single(() => client) }) - }); - - //View docs for all options - Sern.init({ - defaultPrefix: '!', // removing defaultPrefix will shut down text commands - commands: 'dist/commands', - // events: 'dist/events' (optional), - }); + await makeDependencies({ + build: (root) => root.add({ '@sern/client': single(() => client) }), + }); + + //View docs for all options + Sern.init({ + defaultPrefix: '!', // removing defaultPrefix will shut down text commands + commands: 'dist/commands', + // events: 'dist/events', //(optional) + }); } - client.login();