fix: update JS project structure to match with TS

This commit is contained in:
EvolutionX
2022-06-11 09:19:48 +05:30
parent 60bbcc8ece
commit b1ca6e1d4e
3 changed files with 4 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
"name": "js-example", "name": "js-example",
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "",
"main": "index.js", "main": "src/index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
@@ -16,11 +16,9 @@
"license": "UNLICENSED", "license": "UNLICENSED",
"dependencies": { "dependencies": {
"@sern/handler": "^1.0.0-beta", "@sern/handler": "^1.0.0-beta",
"discord.js": "^14.0.0-dev.1650672498-3617093", "discord.js": "^14.0.0-dev.1650672498-3617093"
"package.json": "^2.0.1"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^17.0.25", "@types/node": "^17.0.25"
"prettier": "^2.6.2"
} }
} }

View File

@@ -13,7 +13,7 @@ const client = new Client({
Sern.init({ Sern.init({
client, client,
defaultPrefix: '!', // removing defaultPrefix will shut down text commands defaultPrefix: '!', // removing defaultPrefix will shut down text commands
commands: 'commands', commands: 'src/commands',
}); });
client.login(); client.login();