Skip to content

Getting Started

Igor edited this page Jan 11, 2024 · 3 revisions

Basic setup

It's very easy to configure and start your own bot, all you need is to follow the steps below.

  1. Visit https://discord.com/developers/applications.
  2. Press that button and type name for your application.
    image
  3. image
  4. image
  5. Be sure to toggle all stuff needed for bot to work.
    image
  6. image
  7. Copy generated token and insert it in token property inside <YOUR_MINECRAFT_PATH>/config/f2d/settings.conf file.
  8. Copy id's of the required text channels using Copy ID (make sure that Discord's Developer Mode is enabled) and insert them in channel property and specify the categories. Example: channels { "1057728340607377609"=[DEATHS,ADVANCEMENTS] }
    image
  9. Invite your bot using https://discordtickets.app/invite-url-generator/.

Webhooks

Automatic creation

The mod will attempt to automatically create required webhooks for channels that have GAME_CHAT category.

Manual creation

You might want to see nice messages like this one.
image
To do that we need to use webhooks, just follow these steps:

  1. Open server (guild) settings and navigate to Integrations page and then press New Webhook button.
    image
  2. Once you created a webhook you need to choose a chat text channel (same with one in the config) and give it a name.
    After this press on Copy Webhook URL button.
    image
  3. Paste link somewhere so you can edit it, it should look like https://canary.discord.com/api/webhooks/935906841974353921/Qx0dxXlS12VQn90IdlxsN1sU5NvRQMEcFuwmObJOO8XNWbHCJxCWI1MVKSln06Nq9NQk, copy only numbers after /webhooks/ and before /. You should end up with webhook id (for example: 935906841974353921), now paste it inside webhook property in config file.

Disabling

To disable webhooks simply set webhooks property to null, like webhooks=null

Clone this wiki locally