Cube Worlds Game Project source code.
Follow these steps to set up and run bot locally:
-
Environment Variables Setup
Create an environment variables file by copying the provided example file:
cp .env.example .env
Open the newly created
.envfile and set the environment variables. -
Launching the Bot
Install the required dependencies:
npm install && npm --prefix src/frontend installStart the bot and frontend in watch mode (auto-reload when code changes):
npm run dev
npm run dev— Start the bot and frontend in development mode.npm run lint— Lint source code.npm run format— Format source code.npm run typecheck— Run type checking.npm run update:all— Update all dependencies.