italankin / wow-auction-notify-bot

The bot gathers prices from WoW auctions and sends notifications to subscribers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WoW Auction Notifier Bot

The bot gathers prices from WoW auctions and sends notifications to subscribers.

Setup

Credentials

  1. Generate Telegram bot token: https://t.me/BotFather
  2. Obtain Battle.net credentials: https://develop.battle.net/access/clients/create

Parameter Description
TELEGRAM_BOT_TOKEN Telegram bot token
DATABASE Path to SQLite database file
BNET_CLIENT_ID Battle.net client ID
BNET_CLIENT_SECRET Battle.net client secret
MAX_NOTIFICATIONS Maximum number of notifications for one user (does not apply to admin users, see users table)
UPDATE_INTERVAL Update interval in minutes, default is 60

Docker

1. Build image

$ docker build -t wowauctionnotifier .

2. Create volume

$ docker volume create wowauctionnotifier-data

3. Create env file

Create .env file with your parameters:

TELEGRAM_BOT_TOKEN=<telegram-bot-token>
DATABASE=/database/0.db
BNET_CLIENT_ID=<battle-net-client-id>
BNET_CLIENT_SECRET=<battle-net-client-secret>

4. Run image

$ docker run --rm -d \
    --env-file .env \
    -v wowauctionnotifier-data:/database \
    wowauctionnotifier

About

The bot gathers prices from WoW auctions and sends notifications to subscribers


Languages

Language:Python 99.7%Language:Dockerfile 0.3%