Code Monkey home page Code Monkey logo

ultimatediscordbotcourse's Introduction

‼️ Attention ‼️

This code is the result of our Youtube ULTIMATE DISCORD BOT course and should not be used in production like this. The code is purely for training purposes.

How to use this code

This code can be used alongside the ULTIMATE DISCORD BOT course.

The playlist can be found here:

If you wonder what we cover and what you can find in this code have a look at the Course Introduction

If you like the content please consider subscribing to StartupTechTutorials on Youtube

About the structure

This Discord Bot uses Discordpy and its command extension. All discord commands are structured in Cogs.

Commands and Cogs

Admin

  • Status
  • Load Cog
  • Unload Cog
  • Reload Cog

Moderation

  • Kick
  • Ban
  • Unban

Games

  • Rock Paper Scissors
  • Hangman Single Player DM game
  • Guess a word Multiplayer Temporary Text Channel game
  • Lottery Database based multiplayer game with schedule

Images

  • Cat
  • Dog
  • Fox
  • Random

NSFW

  • Insult

Gamble

  • Coin
  • Roll
  • Dice

Basic

  • owo
  • invite
  • poke

Local Development Instructions

To start and deploy the bot locally the following steps are required:

pip install -r requirements.txt

Then create the following files:

.env
.env.debug

The .env.debug file is only parsed when you set an environment variable DEBUG. If it is not present it will revert to .env

Contents required for the .env or .env.debug file:

DISCORD_BOT_TOKEN=YOUR_SUBER_SECRET_DISCORD_TOKEN

If you want to make use of the reddit commands you also need to register an App/Bot on reddit.com and add the following lines to the .env files:

REDDIT_APP_ID=YOU_APP_ID
REDDIT_APP_SECRET=SUPER_SECRET_REDDIT_APP_SECRET

If you want to use nodemon to automatically restart the bot while developing create a nodemon config as well:

# ./nodemon.json:
{
  "env": {
    "DEBUG": "true"
  }
}

otherwise you can call the bot via:

export DEBUG=True python main.py

Note: export is required when you want to create the environment variable for the current shell AND all processes started from the current shell!

Note

  • The code is always up to date with the latest episode on the Youtube Channel
  • No PR
  • There will be more to come, once the tutorial series has finished!! So do come back and stay up to date

ultimatediscordbotcourse's People

Contributors

richardschwabe avatar tulpn 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.