Skip to content
Kerolos Zaki edited this page May 11, 2024 · 64 revisions

Important

You can invite our official verfied bot to your server for free.
You don't need to self-host Fable to use it!

Important

If you want a database full of anime/manage characters.
Use the-anilist-branch branch instead of main

Our team does not provide support about self-hosting and won't help you setup self-hosted instances, asking for help in the discord server is only allowed if you find an issue or something missing from this wiki, please read carefully.

MongoDB

  1. Follow any guide online to get a Mongo database online and get the connection URI, the fastest way is through MongoDB Atlas which offers a free tier.
  2. If not using Atlas make sure your database has ReplicaSet enabled.
  3. Get and store your MongoDB connection URI for the next step.

Deno Deploy

  1. Fork this repo
  2. Go to https://dash.deno.com
  3. Click New Project
  4. Select your fork of Fable
  5. Go down to Build step and paste deno task discord
  6. Go down to Entrypoint and select src/interactions.ts
  7. Click Deploy Project
  8. Wait for it to finish.
  9. Click Add environmental variables and then add the following:
  • APP_ID is your discord app id (required)
  • PUBLIC_KEY is your discord app public key (required)
  • BOT_TOKEN is your discord app bot token (required)
  • MONGO_URI a MongoDB connection URI (required)

Warning

If the app commands don't appear when you type /
You might need to also add the env vars APP_ID and BOT_TOKEN to github actions secrets and then re-deploy the project from the deno dashboard.

Important

If you are planning to use community packs on your new self-host of Fable.
You will also have to fork and setup fable-community/packs


Last Step

  • Go do your discord developers portal
  • Put the deno deploy URL (https://deno_id.deno.dev) into the "INTERACTIONS ENDPOINT URL" box
    • replace deno_id with your actual id/url from the deno deploy dashboard.

That's it, Your instance of Fable should be working.

Important

This wiki is only about Fable's source code
For information related to the gameplay, please call /help in discord

Useful Links

Clone this wiki locally