Skip to content

commonly-ts/discord-bot-template

Repository files navigation

Requirements

  • Node.js 22+
  • pnpm package manager
  • pm2 process manager
  • Recommended basic TypeScript knowledge

Quick start

git clone https://github.com/commonly-ts/discord-bot-template.git
cd discord-bot-template

pnpm install    # Install packages

# Recommended pre-build scripts
pnpm format     # Format every file with Prettier
pnpm lint       # Check for linting issues
pnpm typecheck  # Check for any type errors

pnpm build      # Build into lib/

# Remember to rename "temp.env" to ".env" before entering your secrets!
pnpm dev        # Run the bot locally

# Production scripts
pnpm redeploy   # Pull from origin, install dependencies, and build
pnpm start		# Start the process
pnpm stop       # Stop the process
pnpm restart	# Restart the process
pnpm reload		# Reload the process (zero downtime)

About

Functional template Discord bot using the Trivious framework

Resources

Stars

Watchers

Forks

Contributors