Skip to content

Cordevall/Python

Repository files navigation

Important

Most of this discord bot is getting reworked on based on the notices to make all discord bot better

Cordevall Python Discord Bot Template

A Python Discord Bot for all

Features

  • Both Slash Commands and Text-Commands using !.
  • One Place for Multiple Cogs to organize your Cogs!
  • Management though a lightweight Dashboard using flask.

Table of Contents

Divider 1

Installation

Nix | Recommended for Nix/NixOS users

Your in luck Nix/NixOS users we have included a flake.nix ready for you to use. We have combined of all of the information of the flake here

Loading Nix Environment

To load the environment for Nix/NixOS by using

export NIXPKGS_ALLOW_UNFREE=1
nix develop --impure

or you can do the automatic way by installing direnv.

Flake Information

  • Devenv for devenvioments.
  • Installs Poetry and Python.
  • Git Hooks to format and lint python and nix files.
  • Automatic loading of dev environments via direnv.

Poetry | Virtual Environments Recommended

Caution

Poetry should always be installed in a dedicated virtual environment to isolate it from the rest of your system. It should in no case be installed in the environment of the project that is to be managed by Poetry. This ensures that Poetry’s own dependencies will not be accidentally upgraded or uninstalled. (Each of the following installation methods ensures that Poetry is installed into an isolated environment.) In addition, the isolated virtual environment in which poetry is installed should not be activated for running poetry commands.

Python

  1. Install Python via:
  2. Install the required packages using
pip install -r requirements.txt

Setting up the bot

To setup the bot we have included a .env.example here to know what you need to input follow below.

So what you require to get this bot working?

You will need:

  • A Discord Bot Token
  • Guild ID
  • Mongo DB Connection URl (Nix users have the service included in their flake)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published