prepare new template

This commit is contained in:
Jacob Nguyen
2023-12-23 16:08:25 -06:00
parent fa3b220a87
commit a30cf79022
8 changed files with 203 additions and 165 deletions

View File

@@ -10,26 +10,24 @@ const client = new Client({
],
});
/**
* Where all of your dependencies are composed.
* '@sern/client' is usually your Discord Client.
* View documentation for pluggable dependencies
* Configure your dependency root to your liking.
* It follows the npm package iti https://itijs.org/.
* Use this function to access all of your dependencies.
* 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)
});
async function init() {
/**
* Where all of your dependencies are composed.
* '@sern/client' is usually your Discord Client.
* Use this function to access all of your dependencies.
* This is used for external event modules as well
*/
await makeDependencies(({ add }) => {
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)
});
}
init().then(() => client.login())