-
-
Notifications
You must be signed in to change notification settings - Fork 24
Self hosting
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.
- 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.
- If not using Atlas make sure your database has ReplicaSet enabled.
- Get and store your MongoDB connection URI for the next step.
- Fork this repo
- Go to https://dash.deno.com
- Click New Project
- Select your fork of Fable
- Go down to
Build step
and pastedeno task discord
- Go down to
Entrypoint
and selectsrc/interactions.ts
- Click Deploy Project
- Wait for it to finish.
- 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
- 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.
- replace
That's it, Your instance of Fable should be working.