2020-08-24 11:23:01 +00:00
|
|
|
# TWHelp DC Bot
|
|
|
|
|
2020-11-06 19:51:03 +00:00
|
|
|
A Discord bot for the online game Tribal Wars.
|
2020-09-03 13:13:49 +00:00
|
|
|
|
2020-08-24 11:23:01 +00:00
|
|
|
Features:
|
|
|
|
1. Coords translation
|
2020-09-03 13:16:45 +00:00
|
|
|
|
2020-09-03 13:13:49 +00:00
|
|
|
![Screenshot](/screenshots/coordstranslation.png?raw=true)
|
2020-09-03 13:16:45 +00:00
|
|
|
|
2021-05-02 14:50:10 +00:00
|
|
|
2. Live conquer notifications
|
2020-09-03 13:16:45 +00:00
|
|
|
|
2021-01-08 19:21:46 +00:00
|
|
|
![Screenshot](/screenshots/notifications2.png?raw=true)
|
2020-09-03 13:16:45 +00:00
|
|
|
|
2021-05-02 14:50:10 +00:00
|
|
|
3. List of tribe members ordered by OD/ODA/ODD/ODS/points
|
|
|
|
4. Translated into 4 languages: Polish, Czech, English, Dutch
|
2020-08-24 11:23:01 +00:00
|
|
|
|
2020-09-03 13:13:49 +00:00
|
|
|
[You can check all available commands here.](https://dcbot.tribalwarshelp.com/commands/)
|
|
|
|
|
2020-08-24 11:23:01 +00:00
|
|
|
## Development
|
|
|
|
|
2020-11-06 19:50:22 +00:00
|
|
|
**Required env variables to run this bot:**
|
2020-08-24 11:23:01 +00:00
|
|
|
|
|
|
|
```
|
2020-09-03 13:13:49 +00:00
|
|
|
DB_USER=your_pgdb_user
|
2020-08-24 11:23:01 +00:00
|
|
|
DB_NAME=your_pgdb_name
|
|
|
|
DB_PORT=your_pgdb_port
|
|
|
|
DB_HOST=your_pgdb_host
|
|
|
|
DB_PASSWORD=your_pgdb_password
|
|
|
|
API_URL=your_api_url
|
|
|
|
BOT_TOKEN=your_bot_token
|
2020-10-17 11:03:55 +00:00
|
|
|
LOG_DB_QUERIES=true|false
|
2020-08-24 11:23:01 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### Prerequisites
|
|
|
|
|
|
|
|
1. Golang
|
|
|
|
2. PostgreSQL database
|
|
|
|
3. Configured [API](https://github.com/tribalwarshelp/api)
|
|
|
|
|
|
|
|
### Installing
|
|
|
|
|
|
|
|
1. Clone this repo.
|
|
|
|
2. Navigate to the directory where you have cloned this repo.
|
2020-08-24 12:06:50 +00:00
|
|
|
3. Set the required env variables directly in your system or create .env.development file.
|
2020-08-24 11:23:01 +00:00
|
|
|
4. go run main.go
|