Godiscord
S

Publisher

shuflduf

Godiscord

Tools
API Networking Bot Integration Command Messaging GDScript Multiplayer

Use the Discord Bot API directly within Godot! Useful for integrating your Godot game with a server, for example. Big thanks to @lyghtkruz on GitHub for keeping the project alive!

Godiscord

logo

Make a Discord bot directly in the Godot Game Engine!

Examples

Ping-Pong

extends Node

@onready var discord_bot: DiscordBot = $DiscordBot

func _ready() -> void:
    discord_bot.token = OS.get_environment("DISCORD_BOT_TOKEN")

func _on_discord_bot_message_recieved(message: DiscordMessage) -> void:
    if message.content == "!ping":
        message.reply("Pong!")

image

Custom command with options

command

Button to send message

image