Create rich embed messages for Discord (previously discord.club)
Create rich embed messages for Discord (previously discord.club)
A powerful tool for creating rich-embed Discord messages using webhooks.
You will usually want to use the hosted version at https://message.style. There is not much benefit in hosting this yourself.
This describes the easiest way to self host an instance of Embed Generator by creating a single binary that contains both the backend and frontend.
You can find prebuilt binaries of the server with the frontend files included here.
To configure the server you can create a file called config.yaml with the following fields:
…You can also set the config values using environment variables. For example EMBEDG_DISCORD__TOKEN will set the discord
token.
Install Docker and docker-compose and create a docker-compose.yaml file with the following contents:
…Run the file using docker-compose up. It will automatically mount the config.yaml file into the container. You should not configure postgres in your config file as it's using the postgres instance from the container.
Embed Generator should now be accessible in your browser at http://localhost:8080.
You can download NodeJS and NPM from nodejs.org.
# Switch to the embedg-app directory
cd embedg-app
# Install yarn globally
npm install -g yarn
# Install dependencies
yarn install
# Start the development server (optional)
yarn dev
# Build for production use
yarn build# Switch to the embedg-app directory
cd embedg-site
# Install yarn globally
npm install -g yarn
# Install dependencies
yarn install
# Start the development server (optional)
yarn start
# Build for production use
yarn buildInstall Go >=1.21 from go.dev.
# Switch to the backend directory
cd embedg-server
# or if you are in the frontend directoy
cd ../embedg-server
# Configure the server (see steps below)
# Run database migrations
go run main.go migrate postgres up
# Start the development server (optional)
go run --tags "embedapp embedsite" main.go server
# Build and include the frontend files in the backend binary (build app and site first)
go build --tags "embedapp embedsite"
# Build without including the frontend files in the backend binary (you need to serve yourself)
go buildIf you are not using Docker you need to Install PostgreSQL on your device and create a user and database. I'm sure you can find instructions online!
You should now be able to run the binary and host your own instance of Embed Generator. You usually want to deploy this behind a reverse proxy like Nginx and terminate TLS there.
No open issues yet, or sync has not completed.