Skip to content

Shuflduf/Godiscord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Use the Discord Bot API directly within Godot

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors