This is the code repository for Discord Bot on App Engine Demo.
This collection of tutorials demonstrate how to create a Discord Bot on Google Cloud using Python:
- Creating a Discord Bot on App Engine: https://www.youtube.com/watch?v=aczvOQ6S6sA
- Using Secret Manager to Manage Tokens: https://www.youtube.com/watch?v=wb4RU5rpooQ
- Hosting a Poll Bot: https://www.youtube.com/watch?v=wUdZKMeLG4w
Github repo: https://github.com/yoyu777/discord-bot-on-app-engine
- Create a Google Cloud account: https://cloud.google.com/
- Install
gcloud SDK
for Google Cloud: https://cloud.google.com/sdk/docs/install, and initialise it. - Follow the App Engine Quickstart, either node.js or Python, to create a Google Cloud project.
- Clone this repository and, in the terminal, change to the
default
(for node.js) orpython
directory. - Deploy the Discord bot using the following commands
gcloud app create --project=[YOUR_PROJECT_ID]
gcloud app deploy
Important: if you deploy the python bot before you deploy the node.js bot, remove the
service
line in app.yaml
- Node.js discord.js documentaition: https://discord.js.org/#/
- Python discord.py Quickstart: https://discordpy.readthedocs.io/en/latest/quickstart.html
- Creating a Bot Account: https://discordpy.readthedocs.io/en/latest/discord.html#discord-intro (applying to both node.js and Python)
google-cloud-secret-manager
: https://googleapis.dev/python/secretmanager/latest/index.html- Secret Manager Product Quickstart: https://cloud.google.com/secret-manager/docs/quickstart#secretmanager-quickstart-python