Skip to content
forked from erkexzcx/bbtmvbot

Scan the most popular flat rent portals for latest posts in Vilnius, which will be sent to users via Telegram bot.

License

Notifications You must be signed in to change notification settings

5l1v3r1/bbtmvbot

 
 

Repository files navigation

bbtmvbot

License Go Report Card

This bot scans the most popular flat rent portals for latest posts in Vilnius, which will be sent to subscribed users using Telegram app.

Hardware requirements are so low that you can even run this completelly fine on a lowest-end SBC. On RPI0W, RAM usage is only about 8mb and CPU load is only few percent, so you can run this on any potato you want :)

Usage

Feel free to use my hosted instance in cloud: http://t.me/bbtmvbot

Otherwise see below steps on how to host it yourself.

  1. Setup Telegram bot

Using BotFather create your own Telegram bot.

Also using BotFather use command /setcommands and update your bot commands:

info - Information about BBTMV Bot
enable - Enable notifications
disable - Disable notifications
config - Configure bot settings

Once you set-up bot, you should have your bot's Telegram API key.

  1. Install Golang.

The most popular distros usually ships a very old Golang version in their official repositories, which might not work at all. Make sure to remove any existing Golang installations and install the latest version using official upstream guide for your operating system.

  1. Install build dependencies
gcc
g++

Examples:

# Ubuntu/Debian
apt install gcc g++

# Fedora/RHEL
dnf install gcc g++
  1. Build it
git clone https://github.com/erkexzcx/bbtmvbot.git
cd bbtmvbot
go build -ldflags="-s -w" -o bbtmvbot ./cmd/bbtmvbot/bbtmvbot.go
  1. Create configuration file. Simply copy config.example.yml to a new file config.yml and edit accordingly.

  2. Run it

cd <any_working_dir>
./bbtmvbot

Tip: Run it under SystemD script. :)

[Unit]
Description=BBTMVBOT service
After=network-online.target

[Service]
User=erikas
Group=erikas
WorkingDirectory=/home/erikas/bbtmvbot
ExecStart=/home/erikas/bbtmvbot/bbtmvbot
Restart=always
RestartSec=3

[Install]
WantedBy=multi-user.target

About

Scan the most popular flat rent portals for latest posts in Vilnius, which will be sent to users via Telegram bot.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%