Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

Discord bot controllable by a django website deployable to heroku free tier.

License

Notifications You must be signed in to change notification settings

HarryLudemann/Django-Discord

Repository files navigation

Django-Discord

Discord Bot controllable from django website with oauth2
Demo (Takes 30 sec to start)

Bot Features:

  1. Basic
    • Ping - Ping Bot
  2. Fun
    • Cat - Return Random Cat Picture
    • Dog - Return Random Dog Picture
    • Comeback {TargetUser} - Return Random Comeback
    • Inspire - Return Inspirational Qoute
  3. Uncategorised
    • New Member Welcome Message

Setup:

  1. Create Discord Bot Application
  2. Within OAuth2 tab add redirect url eg. https://hazzahsbot.herokuapp.com/oauth2/login/redirect
  3. Fork repo
  4. Create Heroku App
  5. In settings tab add the following config vars:
    • DISABLE_COLLECTSTATIC = 1
    • DiscordBotToken = (Discord Bot Token)
    • SECRET_KEY = (Random Security key for django)
    • CLIENT_ID = discord bot client id
    • CLIENT_SECRET = discord bot client secret
    • DOMAIN = Domain to use eg. hazzahsbot.herokuapp.com
  6. In deploy tab select connect to github and select repo
  7. At bottom of deploy tab select Deploy Branch
  8. In top right heroku click more > run console then 'python manage.py migrate'
  9. At bottom of deploy tab select Deploy Branch
  10. In the resource tab of heroku, switch on 'worker python bot.py'

forthebadge made-with-python