Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
connorhsm committed Oct 24, 2024
1 parent 1b98bb0 commit 4f36897
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# junior
Non-C Junior: Automating the life's work of MVP community member Non Creative Guy. *Supplies helpful information and guides to players upon a phrase in the Discord, amongst other helpful things*

**Always check the Dockerfile for the current version of Node this project is developed against.**

### How to deploy and release a new version
### Deploy and release a new version
- Make desired changes/commits
- Create a new release via Github, naming the tag in the example format 1.0.0
- Create a new release via GitGub, naming the tag in the example format 1.0.0
- Github action Deploy will trigger, building the image, pushing it to GHCR and finally will redeploy it.
- Voila, bot is now updated in Discord. Check with /version

Expand All @@ -25,25 +23,20 @@ When **DEV_TOKEN** is set, **PROD_TOKEN** will not be checked to prevent deployi
- Dev Junior: 912705407850532904
- Dev 2HOL Discord: 678098930503909386

### Command cheat sheet

Build Docker container, leave pushing to the workflow for proper tagging
`docker build . --tag ghcr.io/twohoursonelife/junior`
### Dev command cheat sheet

Run latest dev image
`docker run --detach --env DEV_TOKEN=thetoken ghcr.io/twohoursonelife/junior`
- `npm run build`
- `npm run start`

Deploy commands
GUILDID and CLIENTID defaults to dev token if unset
```bash
export DEV/PROD_TOKEN=
export GUILDID=
export CLIENTID=
node deploy-commands.js
npm run commands
```

Update packages
`npm update`

Better way to update packages (Will tell you about any new versions, including major)
`npx npm-check-updates` provide `-u` for the program to update them itself
`npx npm-check-updates -u`

0 comments on commit 4f36897

Please sign in to comment.