mirror of
https://github.com/sern-handler/templates
synced 2026-06-06 01:16:58 +00:00
fix: update JS project structure to match with TS
This commit is contained in:
@@ -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"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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();
|
||||||
Reference in New Issue
Block a user