Corlink Discord Bot
This is the bot that allows for easy interaction with Corlink. Want to see the docs for the API? Click here.
Setup
There are 3 ways of setting up the Corlink Discord bot:
Create the Bot
- Go to the Discord Developer Portal.
- Click on
New Application
. - Fill in the
Name
and clickCreate
. - Click on
Bot
in the left-hand menu. - Click on
Add Bot
. - Click on
Copy
underToken
to copy the bot token.
Docker
This is one of the easiest ways to get the Corlink Discord bot up and running.
Prerequisites
- Docker
- A discord bot token. (See setup here(#create-the-bot))
Steps
- Pull the image.
docker pull ghcr.io/ruby-network/corlink-bot:latest
- Create a .env file with the following content:
DISCORD_TOKEN=your_discord_token
GUILD_ID=your_guild_id
LICENSING_SERVER_URL=your_licensing_server_url
LICENSING_SERVER_KEY=your_licensing_server_key
OWNER_ID=your_owner_id
- Run the image.
docker run -d --env-file .env ghcr.io/ruby-network/corlink-bot:latest
Docker Compose (Recommended)
This is the recommended way of setting up the Corlink Discord bot. It is the easiest and fastest way to get the Corlink Discord bot up and running.
Prerequisites
Steps
- Acquire the
docker-compose.yml
file from the Corlink repository.- You can find the file here.
- Edit the
docker-compose.yml
files environment variables.
Make sure to change the
DISCORD_TOKEN
to your discord bot token.Variable | Description |
---|---|
DISCORD_TOKEN | A discord token associated with a bot. (See setup here) |
GUILD_ID | The guild ID of the discord server. |
LICENSING_SERVER_URL | The URL of the licensing server. |
LICENSING_SERVER_KEY | The key of the licensing server. |
OWNER_ID | The owner ID of the discord bot (or the server). |
- Run the
docker-compose.yml
file.
docker-compose up -d
- You should now have the Corlink Discord bot up and running.
Manual
This is the most complex way of setting up the Corlink Discord bot. It is not recommended for beginners.
Prerequisites
Steps
- Clone the repository.
git clone https://github.com/ruby-network/corlink.git
- Change directory to the bot folder.
cd corlink/bot
- Install the dependencies.
bundle install
- Edit the
.env
file with your content and credentials. - Run the bot.
bundle exec ruby main.rb
- You should now have the Corlink Discord bot up and running.