Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
August 17, 2022 07:58 am GMT

The bot for BNG bank

Introduction

Hi folks. My name is Roman Pedchenko and I am a full-stack developer. I always thought that my profession as a developer is just to write code but I had mistaken. I've realized that not only do I can create applications but also I can make some people's life easier. I bet everyone knows the situation in the world. In addition to that, there are lots of Ukrainian people who have come across some new challenges every day since February. Unfortunately, I could not solve all their problems but I've tried to solve one of them.

Problem

The people who have moved to Netherland and registered there have received some help and money from the government. But the problem is that they received a card from BNG bank and the plane operation such as checking their current balance becomes challenging.

Solution

I've created the telegram bot that after two steps of registration has just one button check your balance and when you click it it will send you the current balance. There are two options. The first one is just click to on the link and go through some steps of registration. The second is to set up the project on your own aws profile. If you choose this way please just open the repository and follow the steps.

Stack

It seems to me that if you are a developer you want to know what I use. First and foremost I use aws cdk to define resources. If you do not know what is it please open this one. Even though it is a really small bot and it can only parse the site and send the message with the current balance it uses at least four resources such as Lambda, DynamoDB, API Gateway and EventBridge. The first lambda is responsible for registering and handling the check balance event. The second lambda uses the puppeteer layer and receives the current balance and stores it. And last but not least lambda is invoked when the record with the new balance is changed and sent to the new balance. In addition to that, I have one more lambda and the main idea of this one is as a guard. It checks one specific header.

Architecture diagram

Architecture diagram

Conclusion

So, I published the bot to some telegram channels and I was wondered that more than 50 people are using it. Frankly speaking, I am happy that my knowledge and experience help someone. Thank you and take care.


Original Link: https://dev.to/pedchenkoroman/the-bot-for-bng-bank-129a

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To