DiscordlinksDiscordlinks

Self hosting

Host Discordlinks yourself

Step by step guide

Github repo here

Add a .env file at the root folder

Add a MONGO_DB_CONNEXION environment variable for your MongoDB connection string.
it should look like:

  MONGO_DB_CONNEXION = "replace by connexionString"
You can create a free hosted MongoDB database with this tutorial

Add DISCORD_CLIENT_ID, DISCORD_CLIENT_SECRET, DISCORD_BOT_SECRET environment variables. it should look like:

  DISCORD_CLIENT_ID = "replace by CLIENT ID"
  DISCORD_CLIENT_SECRET = "replace by CLIENT SECRET"
  DISCORD_BOT_SECRET = "replace by TOKEN"
You can create a new Discord app from the Discord developper portal

Configure your app on the Discord developper portal.

  • PUBLIC BOT: Make your choice
  • REQUIRES OAUTH2 CODE GRANT: Off
  • PRESENCE INTENT: Off
  • SERVER MEMBERS INTENT: On
  • MESSAGE CONTENT INTENT: On

Your ready to start your bot with the yarn start command from the root folder

On this page