Skip to content
This repository has been archived by the owner on Apr 4, 2021. It is now read-only.

Latest commit

History

History
50 lines (32 loc) 路 1.98 KB

README.md

File metadata and controls

50 lines (32 loc) 路 1.98 KB

Requirements

Useful to always have

Keep this saved somewhere, as this is the docs to discord.py. All you need to know about the library is defined inside here, even code that I don't use in this example is here.

How to setup

  1. Make a bot here and grab the token Image_Example1
  1. config.json fill in the required spots

  2. To install what you need, do pip install -r requirements.txt
    (If that doesn't work, do python -m pip install -r requirements.txt)
    NOTE: Use pip install with Administrator/sudo

  3. Start the bot by having the cmd/terminal inside the bot folder and type python index.py

  4. You're done

FAQ

Q: I don't see my bot on my server!
A: Invite it by using this URL: https://drapaiton.github.io/DiscordTemplateBot/
you need the bot client id, go backwards

Technology Stack

  • Heroku as a Hosting Platform

Optional tools

Flake8

Flake8 is a tool that helps you keep your code clean. Most coding softwares will have a plugin that supports this Python module so it can be integrated with your IDE. To install it, simply do pip install flake8. If you're using python 3.7, install by doing pip install -e git+https://gitlab.com/pycqa/flake8#egg=flake8

Deployment

heroku.com

You can host it on Heroku for free (account verification required).

Deploy

Repl.it

You can run this on Repl.it! Run on Repl.it Make sure to setup config.json in the way stated above.