Skip to content

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

License

Notifications You must be signed in to change notification settings

italankin/wow-auction-notify-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Telegram

  1. In BotFather type /newbot and follow the prompts to make your bot
  2. In BotFather type /setcommands and put in two lines:
list - List Notifications
add - Add Notification
  1. 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.

About

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

Topics

Resources

License

Stars

Watchers

Forks