Skip to content

2nd version of Discord bot made using Discord.gd in Godot engine.

License

Notifications You must be signed in to change notification settings

3ddelano/discord-bot-v2-godot

Repository files navigation

Discord.gd Tutorial Discord Bot v2

2nd version of making a bot using Discord.gd tutorial in Godot engine!

100% GDScript


Godot3

Features

  • 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

Getting Started

  1. Download this repo.
  2. Rename the file .env-sample to .env and paste your BOT_TOKEN in the file.
  3. Open the project.godot file in Godot. Then run the Main.tscn scene.

Previous Source Code

For source code of previous parts of the tutorial, see branches

Host the bot for free on Heroku (free version was discontined by Heroku on November 28, 2022)

  1. Create a new app on Heroku (Needs signing up for a Free account)

  2. Goto the Settings tab, in the Config Vars section, click Reveal Config Vars

  3. Add three config vars:

    • GODOT_VERSION: 3.4.2
    • HEROKU_URL: https://<your-app-name>.herokuapp.com
    • BOT_TOKEN: <your discord bot token>
  4. In the Buildpacks section, click Add Buildpack, and paste this URL

    https://github.com/3ddelano/heroku-buildpack-godot

  5. 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).

Support

Buy Me A Coffee Want to support in other ways? Contact me on Discord: @3ddelano#6033

For doubts / help / bugs / problems / suggestions do join: 3ddelano Cafe