diff --git a/templates/javascript/package.json b/templates/javascript/package.json index 21bdd25..bc6019b 100644 --- a/templates/javascript/package.json +++ b/templates/javascript/package.json @@ -2,7 +2,7 @@ "name": "js-example", "version": "1.0.0", "description": "", - "main": "index.js", + "main": "src/index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, @@ -16,11 +16,9 @@ "license": "UNLICENSED", "dependencies": { "@sern/handler": "^1.0.0-beta", - "discord.js": "^14.0.0-dev.1650672498-3617093", - "package.json": "^2.0.1" + "discord.js": "^14.0.0-dev.1650672498-3617093" }, "devDependencies": { - "@types/node": "^17.0.25", - "prettier": "^2.6.2" + "@types/node": "^17.0.25" } } diff --git a/templates/javascript/commands/ping.js b/templates/javascript/src/commands/ping.js similarity index 100% rename from templates/javascript/commands/ping.js rename to templates/javascript/src/commands/ping.js diff --git a/templates/javascript/index.js b/templates/javascript/src/index.js similarity index 94% rename from templates/javascript/index.js rename to templates/javascript/src/index.js index 1b630bd..e2792df 100644 --- a/templates/javascript/index.js +++ b/templates/javascript/src/index.js @@ -13,7 +13,7 @@ const client = new Client({ Sern.init({ client, defaultPrefix: '!', // removing defaultPrefix will shut down text commands - commands: 'commands', + commands: 'src/commands', }); client.login();