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
.env
file and set the environment variables. -
Launching the Bot
Install the required dependencies:
npm install npm --prefix src/frontend install
Start the bot in watch mode (auto-reload when code changes):
npm run dev
npm run lint
— Lint source code.npm run format
— Format source code.npm run typecheck
— Run type checking.npm run dev
— Start the bot in development mode.npm run start
— Start the bot.npm run start:force
— Starts the bot without type checking.npm run update
— Update all dependencies.