Skip to content
This repository was archived by the owner on Jun 29, 2024. It is now read-only.

denver-code/warfacestats_bot

Repository files navigation

WarfaceStatsBot - International

made-with-python3 PRODUCTION ! Docker Image CI


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!

Env Information

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 to

Run gateway server

Note

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.py

Run gateway in docker with scripts

Note

Install docker

$ sudo sh scripts/runbot.sh

Run gateway in docker with docker-compose

$ sudo docker-compose up --build -d

About

See your warface player and clan information in telegram bot!

Topics

Resources

License

Stars

Watchers

Forks

Languages