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.
When DEV_TOKEN is set, PROD_TOKEN will not be checked to prevent deploying dev commands to prod accidentally. Default hardcoded dev CLIENT and GUILD ID's will be used; If only PROD_TOKEN is set, it will be expected the ID variables are also set.
CLIENTID: ID of the bot client to deploy the commands
GUILDID: ID of the guild to deploy the commands
Junior: 888800450533548123
2HOL Discord: 423293333864054833
Dev Junior: 912705407850532904
Dev 2HOL Discord: 678098930503909386
Build Docker container, leave pushing to the workflow for proper tagging
docker build . --tag ghcr.io/twohoursonelife/junior
Run latest dev image
docker run --detach --env DEV_TOKEN=thetoken ghcr.io/twohoursonelife/junior
Deploy commands GUILDID and CLIENTID defaults to dev token if unset
export DEV/PROD_TOKEN=
export GUILDID=
export CLIENTID=
node deploy-commands.js
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