You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
Go to file
Dawid Wysokiński ab3f79254f bump github.com/tribalwarshelp/shared and github.com/tribalwarshelp/golang-sdk, update .gitignore and logrus configuration 2 years ago
.circleci update the docker repository in .circleci/config.yml 2 years ago
cron bot should send notifications about all conquers now 2 years ago
discord make score in Session.handleTribeCommand more readable (add commas) 2 years ago
group update some errror messages 2 years ago
message make score in Session.handleTribeCommand more readable (add commas) 2 years ago
models bump github.com/tribalwarshelp/golang-sdk 2 years ago
observation update some errror messages 2 years ago
screenshots replace notifcations.png with notifications2.png 2 years ago
server update some errror messages 2 years ago
utils bump github.com/tribalwarshelp/shared and github.com/tribalwarshelp/golang-sdk 2 years ago
.gitignore bump github.com/tribalwarshelp/shared and github.com/tribalwarshelp/golang-sdk, update .gitignore and logrus configuration 2 years ago
Dockerfile update Dockerfile and README.md 2 years ago
LICENSE update readme.md and Dockerfile, add LICENSE 2 years ago
README.md replace notifcations.png with notifications2.png 2 years ago
dev.sh add dev.sh, code refactor, add village continent to its name 2 years ago
go.mod bump github.com/tribalwarshelp/shared and github.com/tribalwarshelp/golang-sdk, update .gitignore and logrus configuration 2 years ago
go.sum bump github.com/tribalwarshelp/shared and github.com/tribalwarshelp/golang-sdk, update .gitignore and logrus configuration 2 years ago
main.go bump github.com/tribalwarshelp/shared and github.com/tribalwarshelp/golang-sdk, update .gitignore and logrus configuration 2 years ago

README.md

TWHelp DC Bot

A Discord bot for the online game Tribal Wars.

Features:

  1. Coords translation

    Screenshot

  2. Near real-time notifications about conquers

    Screenshot

  3. Tribe members ordered by OD/ODA/ODD/ODS/points

  4. Translated into 3 languages: Polish, English, Dutch

You can check all available commands here.

Development

Required env variables to run this bot:

DB_USER=your_pgdb_user
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
LOG_DB_QUERIES=true|false

Prerequisites

  1. Golang
  2. PostgreSQL database
  3. Configured API

Installing

  1. Clone this repo.
  2. Navigate to the directory where you have cloned this repo.
  3. Set the required env variables directly in your system or create .env.development file.
  4. go run main.go