Skip to content

Tsingis/telegram-bot

Repository files navigation

Quality Gate Status Deploy Status

Telegram bot running on AWS Lambda that uses APIs or scraped data

Current features:

F1

  • Upcoming race
  • Standings (both driver and team)
  • Latest race results

NHL (partially lost features due to completely new API)

  • NHL regular season scoring leaders (by team or nationality)
  • NHL player contract (by name)

Other

  • Weather info (by location)
  • Random picture (by keyword)

How it works:

alt text

Tools

  • Python
  • Docker
  • AWS
  • Node.js
  • Serverless Framework
  • Pulumi

Dev environment setup

  • Install pipenv globally pip install -r requirements.txt
  • Set up environment pipenv install --ignore-pipfile --dev
  • Activate virtual environment pipenv shell

Manual deployment

  • Install deps npm install

  • Deploy lambda with Serverless

    1. Start Docker
    2. Activate virtual environment if not active pipenv shell
    3. Deploy npm run deploy
  • Deploy other resources with Pulumi

    1. Setup stacks Pulumi.{stack-name}.yml
    2. Select stack pulumi stack select {stack-name}
    3. Refresh pulumi refresh
    4. Deploy pulumi up

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •