Skip to content

open-app/bazaar-bot

Repository files navigation

Bazaar Bot

Telegram Bot for facilitating local community markets.

Usage

To use the Telegram Bot API, you first have to get a bot account by chatting with BotFather.

Create a directory on the docker host for persisting the SSB data:

mkdir ~/ssb-bazaar-data
chown -R 1000:1000 ~/ssb-bazaar-data

Run the image

docker run -d --name bazaar-bot \
  -v ~/ssb-bazaar-data/:/root/.ssb-bazaarbot/ \
  -e BOT_TOKEN="xxx-xxx-xx" \
  -e COMMUNITY_CURRENCY="SHELL" \
  -e FIAT_CURRENCY="Dollars" \
  -e DEFAULT_LOCAL="en" \
  -e SCOPE="COMMUNITY-NAME" \
  -e APP_KEY="secret" \
  -p 4000:4000 \
  --restart unless-stopped \
  communityfirst/bazaar-bot

Or Rename the .env.sample file to .env and edit it with needed configuration.

Using docker-compose

Copy and edit the .env.compose file: cp .env.compose .env

Now just run docker-compose up -d to run it detached.

About

Telegram Bot for facilitating local community markets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published