Skip to content

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

License

Notifications You must be signed in to change notification settings

mevljas/nepremicnine-discord-bot

Repository files navigation

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)

playwright install chromium

Run the local browser

cd 'C:\Program Files\Google\Chrome\Application'
./chrome.exe -remote-debugging-port=9222

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

About

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

Topics

Resources

License

Stars

Watchers

Forks