2nd version of making a bot using Discord.gd tutorial in Godot engine!
100% GDScript
- Commands are in separate files
- Easily scale number of commands and interactions
- Commands support aliases, usage, description and more
- Advanced help command which dynamically generates help from all commands
- Download this repo.
- Rename the file
.env-sample
to.env
and paste your BOT_TOKEN in the file. - Open the
project.godot
file in Godot. Then run theMain.tscn
scene.
For source code of previous parts of the tutorial, see branches
-
Create a new app on Heroku (Needs signing up for a Free account)
-
Goto the
Settings
tab, in theConfig Vars
section, clickReveal Config Vars
-
Add three config vars:
GODOT_VERSION
: 3.4.2HEROKU_URL
: https://<your-app-name>.herokuapp.comBOT_TOKEN
: <your discord bot token>
-
In the
Buildpacks
section, clickAdd Buildpack
, and paste this URLhttps://github.com/3ddelano/heroku-buildpack-godot
-
Finally goto the
Deploy
tab and follow the instructions to push your source code to Heroku (you can directly use the GitHub flow or even use the Heroku CLI).
Want to support in other ways? Contact me on Discord: @3ddelano#6033
For doubts / help / bugs / problems / suggestions do join: 3ddelano Cafe