Skip to content

xxgicoxx/rastreaqui-bot

Repository files navigation

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

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

Authors

Acknowledgments