

Warface Telegram bot with useful tools for the community.
[!Notice] Bot is not working anymore as My.Games disabled the game API so this bot cannot fetch player, clan nor crownchallenge data anymore.
Note
Realtime work version located: https://t.me/warfacestats_bot
You can view video on my website - https://savenko.vercel.app/works/wfstats
Among the tools you could find there is stuff like checking current amount of online player per channel, game news, reference to useful materials, game ladders, player statistics and more to come. The list of available commands will be registered in the /help command!
Most configuration really isn't about the app -- it's about where the app runs, what keys it needs to communicate with third party API's, the db password and username, etc... They're just deployment details -- and there are lots of tools to help manage environment variables -- not the least handy being a simple .env file with all your settings. Simply source the appropriate env before you launch the app in the given env (you could make it part of a launch script, for instance).
env files look like this:
SOMEVAR="somevalue"
ANOTHERVAR="anothervalue"
To source it:
$ source sample.env # or staging.env, or production.env, depending on where you're deploying toNote
We used python 3.10.1 64-bit version!
And don't forget to change your .env settings!
$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip3 install -r requirements.txt
$ python3 main.pyNote
Install docker
$ sudo sh scripts/runbot.sh$ sudo docker-compose up --build -d