Home / Companies / Contentful / Blog / Post Details
Content Deep Dive

How to serverless your parenting skills - or the story of how I learn bad dad jokes from a bot

Blog post from Contentful

Post Details
Company
Date Published
Author
David Litvak
Word Count
1,028
Language
English
Hacker News Points
-
Summary

The author, a software engineer, created a Telegram bot that provides on-demand bad jokes using the Telegram Bot API and AWS Lambda. The bot uses Python as its programming language and Contentful as its backend to store jokes and notifications. The author used the Serverless framework to automate the deployment pipeline and leveraged the Webhook method of interaction for efficient communication with users. After facing some initial challenges, such as content scarcity and testing limitations, the author overcame them by fetching jokes from Twitter feeds, using APIs, and implementing a dispatcher pattern to simplify code. The bot's development was found to be simple and fun, but also came with some key learnings about deployment, debugging, and mocking. The author plans to further improve the bot by migrating user session storage to DynamoDB.