Skip to content

MatheusPush/RastreioBot

 
 

Repository files navigation

Donate Donate Twitter Follow

Rastreiobot

About

This is a Telegram Bot that tracks packages from the Brazilian Mail Service. It runs on Python 3 and uses MongoDB.

Try it!

Setup

After cloning/downloading the repository, install required packages:

pip install -r requirements.txt

Create a file bot.conf following bot.conf_sample.

TOKEN Bot token generated by BotFather

int_check Minimum interval between checks for the same package (3600 means 1 hour)

*_log Log files

patreon List of people that donate to the bot

Banned List of banned users

usuario User provived by Correios

senha Password provided by Correios

token Token provided by Correios

key Key provided by TrackingMore

url Sentry URL

Run MongoDB!

For RaspberryPi: https://github.com/GabrielRF/Docker-MongoDB-RPi

Run

To receive messages:

python rastreiobot.py

To check for updates, I recommend a cronjob that runs every 15 min.

Type crontab -e and add to the end of the file:

*/15 * * * * cd /usr/local/bin/RastreioBot; /usr/bin/python3 /usr/local/bin/RastreioBot/routine.py 0
*/15 * * * * cd /usr/local/bin/RastreioBot; /usr/bin/python3 /usr/local/bin/RastreioBot/routine.py 1
*/15 * * * * cd /usr/local/bin/RastreioBot; /usr/bin/python3 /usr/local/bin/RastreioBot/routine.py 2
*/15 * * * * cd /usr/local/bin/RastreioBot; /usr/bin/python3 /usr/local/bin/RastreioBot/routine.py 3
...

Contribute

Pull requests and issues are welcome!

Contact

Telegram

Site

About

Telegram Bot @RastreioBot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%