Skip to content

Commit

Permalink
Add readme & update docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Skye-31 committed Mar 1, 2022
1 parent a17da9b commit 6d742c1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# WordleBot

Public instance: [Invite](https://discord.com/oauth2/authorize?client_id=948289152514924584&scope=applications.commands)

## Self-Hosting
#### Setup
```shell
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`.

After that, you run the following command.
```shell
docker-compose up -d
```
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ services:
restart: unless-stopped
volumes:
- ./config.json:/app/config.json
#command: --sync-commands --sync-db

0 comments on commit 6d742c1

Please sign in to comment.