An open API service indexing awesome lists of open source software.

https://github.com/xxgicoxx/rastreaqui-bot

Telegram bot for track Correios objects.
https://github.com/xxgicoxx/rastreaqui-bot

correios correiosjs objects track

Last synced: 10 months ago
JSON representation

Telegram bot for track Correios objects.

Awesome Lists containing this project

README

          

# RastreAQUI
Telegram bot for track Correios objects.



# Features
* /add `code` `name` - Add object
* /remove `code` - Remove object
* /check `code` - Check object
* /list - List objects
* /help - Help

# Prerequisites
* [Node.js](https://nodejs.org/en/)

# Running
### 1. Configure
````
# Bot
Create and configure .env file like .env.example.
````

### 2. Telegram
````
# Create an Telegram bot
Find @BotFather on Telegram, type /newbot and follow the instructions.

# Username
Get your bot username and set 'TELEGRAM_USERNAME' in .env.

# Token
Get your token from @BotFather and set 'TELEGRAM_TOKEN' in .env.
````

### 3. PostgreSQL
````
# Install
Install PostgreSQL and create an database.

# Configure
Set PostgreSQL 'POSTGRESQL_USERNAME', 'POSTGRESQL_PASSWORD', 'POSTGRESQL_DATABASE', 'POSTGRESQL_HOST' and 'POSTGRESQL_DIALECT' in .env.
````

### 4. Run
````
# Install dependencies
npm install

# Create tables
npm run migrate

# Seed tables
npm run seed

# Start
npm start
````

# Built With
* [Node.js](https://nodejs.org/en/)

# Authors
* [xxgicoxx](https://github.com/xxgicoxx)

# Acknowledgments
* [FlatIcon](https://www.flaticon.com/)