GithubHelp home page GithubHelp logo

dpy-boilerplate's Introduction

dpy-boilerplate

Opinionated boilerplate configurations for bots written in Python using discord.py.

This project contains 2 boilerplate repositories that you can use to kickstart your Discord bot project(s).

NOTE: Although you can use this for your first project, I highly recommend understanding every bit of code that is written before relying on it, if not trying to code on your own first. These templates are meant for returning devs who want to spin up a bot quickly without setting up the necessities.

Choosing between basic and advanced

There are a bunch of distinctions between the 2 configs. The major ones are listed below!

Feature Basic Advanced
Cog-based architecture ✔️ ✔️
Prefix command examples ✔️ ✔️
Slash command examples ✔️ ✔️
Database SQLite PostgreSQL
Logging ✔️
Client session ✔️
Custom help command ✔️
Dev environment ✔️

TL;DR: Basic is good for a small scale bot with limited features. Advanced has a lot more options that you'd need when having a bigger feature-set.

Note: If you want to set up basic but want a feature from advanced without its entirity, you can grab it from there with little extra config.

Setup

The general setup for both the templates will look the same.

  1. You get the repository cloned on your system
  2. Set the initial configuration
  3. Search and complete all the FIXMEs in the code. Optionally the TODOs as well.
Installation for basic
  1. Clone the repository. Since we want to truncate the git history, let's get the latest zip. Replace <new-repo-name> with any name you like.

    curl -L https://git.sr.ht/~getpsyched/dpy-boilerplate-basic/archive/master.tar.gz | gunzip | tar xv
    mv dpy-boilerplate-basic-master <new-repo-name>
    cd <new-repo-name> && git init
  2. Set the environment variables in the .env.

  3. Done! Simply eliminate the FIXMEs and TODOs and you're setup with a nice little bot repo.

Installation for advanced

Skip local setup and deploy as is while forking this repo:
Deploy on Railway

  1. Clone the repository. Since we want to truncate the git history, let's get the latest zip. Replace <new-repo-name> with any name you like.

    curl -L https://git.sr.ht/~getpsyched/dpy-boilerplate-advanced/archive/master.tar.gz | gunzip | tar xv
    mv dpy-boilerplate-basic-master <new-repo-name>
    cd <new-repo-name> && git init
  2. Set the environment variables in the .env.

  3. TODO

dpy-boilerplate's People

Contributors

getpsyched avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.