-
-
Notifications
You must be signed in to change notification settings - Fork 25
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.
![](https://private-user-images.githubusercontent.com/52022280/329469459-715d56eb-d4c9-4fa6-8fc9-fb369205ca98.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NzY5MDIsIm5iZiI6MTczODk3NjYwMiwicGF0aCI6Ii81MjAyMjI4MC8zMjk0Njk0NTktNzE1ZDU2ZWItZDRjOS00ZmE2LThmYzktZmIzNjkyMDVjYTk4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDAxMDMyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTEzOTk0OTliZjg5Mjk4MDhhNTM0YjQzMWE2NDQyNTYyMWU2ZDAzNWVhYTRjNjA4MjgxMzhkZTZjYTc2ZDNjN2YmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.aIczTcpFDM4vRW06GtXXn2XJxVxj-5uMLrrHe-4pfwQ)
![](https://private-user-images.githubusercontent.com/52022280/319167901-0da2f17b-9eb0-4883-8d66-a24707f6ac3a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NzY5MDIsIm5iZiI6MTczODk3NjYwMiwicGF0aCI6Ii81MjAyMjI4MC8zMTkxNjc5MDEtMGRhMmYxN2ItOWViMC00ODgzLThkNjYtYTI0NzA3ZjZhYzNhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDAxMDMyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYzZjdjYjIxN2MyYWIwYjhjMGJhYjE5NTNhYWE5MzllNjk1YjBlMWM5ZWYyOWI0MzQwYmQ1ZWZlYzRmODcwNjEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.NlnKO5c1uW1_Y4GDLO7hRA-IKiP9pZsiLnnW9-aQ-vg)
- 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.
![](https://user-images.githubusercontent.com/52022280/234547114-2b7c8421-2b67-4242-b872-6c56ee88ed35.png)