The bot gathers prices from WoW auctions and sends notifications to subscribers.
- Generate Telegram bot token: https://t.me/BotFather
- 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 build -t wowauctionnotifier .
$ docker volume create wowauctionnotifier-data
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>
$ docker run --rm -d \
--env-file .env \
-v wowauctionnotifier-data:/database \
wowauctionnotifier
- In BotFather type
/newbot
and follow the prompts to make your bot - In BotFather type
/setcommands
and put in two lines:
list - List Notifications
add - Add Notification
- In a message to your new bot make sure it autocompletes those two above commands when you type
/
. Try/add
. It should walk you through prompts to make notifications.