Skip to main content

Discord.js Bot Template

This page provides a starter template for building and hosting Discord.js bots on Cytric.nl. Use this template to quickly set up your bot and deploy it to GitHub and Cytric.

Features

  • Node.js 16+
  • Discord.js library
  • Ready for deployment to Cytric
  • Example GitHub Actions workflow

Example Bot Code

Deploy to GitHub

Use our official template: Cytric-Bot-Template-JS
  1. Fork or clone the template repository.
  2. Add your bot token as a GitHub secret named DISCORD_TOKEN.
  3. Push your code changes to GitHub.

Example GitHub Actions Workflow

Create .github/workflows/deploy.yml:

Resources