Bot

Interact with discord using a bot.

Step 1 Create a Bot

  • Go to the Discord Developer Portal. https://discord.com/developers/applications

  • Go to applications.

  • Click new application.

  • Click Bot.

  • Click Reset Token.

  • Copy token.

  • Enable Privileged Gateway Intents. (I recommend enabling them all)

Step 2 Invite Bot to Server

  • Select the permissions the bot should have. (I recommend just giving admin)

  • Copy the client ID from the application.

  • Click the generated link on the calculator.

  • Invite the bot to the server.

Step 3 Register Bot with Leaf

  • In the config.yml paste the bot's token into the discord_token field.

  • Restart the proxy server.

  • You're done!

Customise your Bot!

Commands that support discord bots:

  • Chat (Example: Add a staff chat channel)

  • Find (Example: /find in discord)

  • Info (Example: /info in discord)

  • List (Example: /stafflist in discord)

  • Servers (Example: /servers in discord)

  • Command (Example: /ban in discord)

Discord Events:

  • Discordmessage (Link text channels to minecraft)

Discord Command Defaults

Last updated