Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 1.15 KB

README.md

File metadata and controls

54 lines (35 loc) · 1.15 KB

nepremicnine-discord-bot

A discord bot for notifying about new listings on the nepremicnine.net website using Playwright.

Main workflow Code style: black Linting: pylint

Project setup

Setup environment variables

cp .env.example .env

Install requirements

poetry install

Install Playwright browsers (chromium, firefox, webkit)

poetry run playwright install chromium

Configure the bot

  • Add Discord bot token to the .env file.
  • Add database path to the .env file.
  • Add discord channel ids and nepremicnine.net search url pairs to the config.txt file.

Development

Analyze the code

poetry run pylint $(git ls-files '*.py')

Format the code

poetry run black .

Run the bot

poetry run python main.py