/aws-serverless-mtg-fetcher

Search & fetch for 'Magic The Gathering' cards using AWS serverless lambda

Primary LanguageHCL

aws-severless-mtg-fetcher

Fetch 'Magic The Gathering' cards using AWS serverless lambda & Telegram bot

img.png

Steps to setup:

Create a telegram bot:

Update 'fetch_mtg.py' with your telegram bot token

Deploying with Terraform:

  • navigate to the terraform directory
  • update the 'provider.tf' file with your AWS credentials
  • run: terraform init
  • run: terraform plan
  • run: terraform apply

Setup the telegram bot webhook:
You need to setup a webhook for your telegram bot & lambda, which is easily done like so:

Using the bot:

  • Open Telegram and start a conversation with your bot
  • Type: /search black lotus
  • Bot should return the black lotus MTG card
  • Test with any MTG card you like
  • Easily add more commands via Botfather & updating the 'fetch_mtg.py' file
  • Enjoy!