PRIMARY_WEBSITE_URL: https://thecoop.group/
PRIMARY_API_URL:
Quick start current stable version: Clone Github repository >> https://github.com/the-coop/coop-bot.git yarn install
Create .env file in root (coop-bot/.env)
DISCORD_TOKEN=<DISCORD_TOKEN > DATABASE_URL=<DATABASE_URL> GUILD_ID=<GUILD_ID>
Local running (for accuracy/non-duplication only one instance per GUILD_ID supported*). heroku local worker [for bot testing] heroku local web [for API testing]
yarn dev Starts script text: nodemon --exec 'node --experimental-json-modules' ./origin/setup/shallow.mjs
yarn start-bot Starts script text: node --experimental-json-modules ./index.mjs
yarn start-api Starts script text: node --experimental-json-modules ./api.mjs
Note: For successful operation your deployment/hosting target must have a valid .env file.
yarn deploy-commands Starts script text: node --experimental-json-modules ./patching/deploy-commands.mjs
yarn db Starts script text: heroku pg:psql --app <PRIMARY_APP>
yarn lint Starts script text: eslint .
* Single Server Bot (SSB**) ** Idk if this exists, just made it up.
Steps that had to be taken to create host instance:
Security group Key Pipeline appspec buildspec
Install nvm nvm alias default lts/*