Skip to content

Getting Started

willianpm edited this page Mar 14, 2026 · 1 revision

Getting Started

Prerequisites

  • Node.js 22 or later
  • npm
  • Discord bot credentials (TOKEN and CLIENT_ID)

Installation

  1. Clone repository.
  2. Install dependencies.
git clone https://github.com/willianpm/LittleBoatPoll.git
cd LittleBoatPoll
npm install

Environment Setup

Create .env from .env.example and provide required values:

TOKEN=your_discord_bot_token
CLIENT_ID=your_discord_application_id
APP_ENV=prod
DEPLOY=true
DEBUG=false
PORT=8000

For staging mode, use .env.staging and set APP_ENV=staging.

Run Commands

npm start                # start bot (prod by default)
npm run start:staging    # start bot in staging
npm run deploy           # register slash/context commands
npm run deploy:staging   # register commands in staging mode

First Validation

npm test
npm run lint

Related Pages

Clone this wiki locally