Skip to content

Skye-31/WordleBot

Repository files navigation

WordleBot

Public instance: Invite

Self-Hosting

Setup

git clone https://github.com/Skye-31/WordleBot
cd WordleBot
cp example.config.json config.json
# Edit your config.json file as appropriate
# You should use a Postgresql 12+ database
# Install Docker & Docker Compose
docker-compose build

Running

The first time you run the bot, you should use the flags --sync-commands and --sync-db to automatically set up your bot commands & database tables. You can do this by commenting out the line in your docker-compose.yml.

Note: If you want to use it on one guild only (via dev-mode in your config.json), you'll need to invite the bot with the bot+applications.commands scope, as opposed to just applications.commands.

After that, you run the following command.

docker-compose up -d

You'll then need to setup a HTTP proxy to port :4567 on your server, and add this URL to the http interactions endpoint of your discord application.