Getting Started
After the installation, add the DiscordBot node as a child to any node.
The scene tree should look like this
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.
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.
That's it, you can connect the other signals too like message_create , guild_create , etc.