Skip to main content

Discord.py Bot Template

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

Features

  • Python 3.8+
  • Discord.py library
  • Ready for deployment to Cytric
  • Example GitHub Actions workflow

Example Bot Code

Deploy to GitHub

Use our official template: Cytric-Bot-Template-PY
  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