Skip to content

Getting Started

After the installation, add the DiscordBot node as a child to any node.

create node window

The scene tree should look like this

the scene tree with the bot

Now you can add a script to any node besides the DiscordBot node, here let's add the script to the Test node.

The compulsory requirement is the bot TOKEN which can be obtained from Discord Developers After setting the TOKEN, calling .login() will login the bot and establish a connection to the Discord gateway.

your scene tree

If everything went well, the DiscordBot will emit the bot_ready signal. Now you need to connect the signals which you want from DiscordBot to the Test node.

after connecting the signals

That's it, you can connect the other signals too like message_create , guild_create , etc.

See simple bot

Back to top