Skip to content

Commit

Permalink
add. start script from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
luswdev committed Oct 15, 2022
1 parent feeafce commit 1902460
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deploy-cmds.js → deployCmds.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ const commands = getCmdsJson()
const rest = new REST({ version: '10' }).setToken(token)

rest.put(Routes.applicationCommands(clientId), { body: commands })
.then((data) => console.log(`Successfully registered ${data.length} application commands.`))
.then((data) => console.log(`[${__filename}] Successfully registered ${data.length} application commands.`))
.catch(console.error)
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Splatoon 3 Discord Bot",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"start": "node index.js",
"cmd": "node deployCmds.js"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 1902460

Please sign in to comment.