GithubHelp home page GithubHelp logo

deserializer / discord-bot-heroku Goto Github PK

View Code? Open in Web Editor NEW
84.0 84.0 317.0 18 KB

Starter kit for hosting a Discord bot on Heroku

Python 94.30% Procfile 5.70%
discord-py heroku python starter-kit

discord-bot-heroku's Introduction

Starting on Nov. 28, 2022, free Heroku dynos will no longer be available. This guide will still be relevant, but hosting your bot through Heroku will be a paid service.

Prerequisites

Create accounts for the following:

Creating a Discord application and bot

Discord Developer Portal: https://discord.com/developers/applications/

  • Create a new developer application using the 'New Application' button.
  • Open up your application and create your bot using the 'Add Bot' button under the Bot settings.
  • Make sure to use the 'Copy' button under Token to copy your bot token. Take note of your token as you will need it to connect to your bot.

Forking the repository and setting up Heroku

  • Fork a copy of this repository using the 'Fork' button on GitHub.
  • Create a Heroku application: https://dashboard.heroku.com/new-app?org=personal-apps
  • Navigate to the 'Deploy' section and do the following:
    • Under Deployment method, connect your GitHub account to Heroku.
    • Use the search field to search for the forked repository to connect to your Heroku application.
    • You can 'Enable Automatic Deploys' to automatically redeploy the application after every commit on GitHub.

Connecting your bot to Discord

  • Navigate to the 'Settings' section and do the following:
    • Under Config Vars, 'Reveal Config Vars' to reveal KEY and VALUE and enter the following:
      • KEY: DISCORD_TOKEN
      • VALUE: (Enter the bot token copied from the Discord Developer Portal)
      • 'Add' your bot token to Config Vars.
  • Navigate to the 'Resources' section and do the following:
    • Switch on your worker by using the 'Pencil' icon and confirming your decision.
    • Note: You are given 550 free Dyno hours, which will not span the entire month; however, if you provide a credit card to verify your identity, you are given an additional 450 Dyno hours, which will allow your bot to run 24/7. This will no longer be applicable as of Nov. 28, 2022.

discord-bot-heroku's People

Contributors

aneesh223 avatar deserializer avatar robertni avatar wuijx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

discord-bot-heroku's Issues

help

I followed your tutorial, but there is no pencil icon on heroku

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.