Giter Site home page Giter Site logo

rastreiobot's Introduction

RastreioBot Logo

Build Status Deploy Twitter Follow

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

We use Poetry to manage our dependencies. Check out its Poetry guide to install it on your machine.

To install the required packages, use the command below. It will install the runtime and also the development dependencies (e.g. Pytest).

$ poetry install

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

MongoDB

RaspberryPi

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

Mac

brew install mongodb-community
brew services start mongodb-community

SQLite

touch data_base.db

create db structure

CREATE TABLE assinantes (
        id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
        chatid TEXT,
        picpayid TEXT);

Commands available

$ poetry run rastreio --help
Usage: rastreio [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  packages:clean                  Clean old and duplicated packages
  packages:update                 Update active packages
  packages:delete <package-code>  Delete a package
  bot:run [--maintenance]         Set bot to maintenance mode

Running tests

The tests are running on pytest, so, in order to run them, just do

poetry run pytest

Contribute

Pull requests and issues are welcome!

Contact

Telegram

Site

rastreiobot's People

Contributors

afonsocarlos avatar anaschwendler avatar andersonberg avatar bigua avatar dependabot[bot] avatar eliassoares avatar gabekanegae avatar gabrielrf avatar igorsantos07 avatar itepifanio avatar juvenv avatar laercios avatar patrickelectric avatar rafaelgotts avatar rougeth avatar teixeirazeus avatar tiagodanin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.