Better Programming

Advice for programmers.

Follow publication

Member-only story

Deploy a “RemindMe” Reddit Bot Using AWS Lambda and EventBridge

Schedule AWS Lambda functions effortlessly with Serverless

André Ribeiro
Better Programming
Published in
6 min readOct 21, 2021

Photo by Brett Jordan from Pexels.

Table of Contents

Introduction
Register a Reddit bot
Create a RemindMe bot with praw
Deploy the service to Lambda and run it on a schedule
Complete scripts
Conclusion
References

Introduction

What are Reddit bots? Am I allowed to build one? How can I do it? Are they expensive to run? These were just a few of the questions I had before going on a journey to implement my own Reddit bot.

Let’s start from the beginning. A Reddit bot is an application that can keep track of posts, comment, or reply in an autonomous fashion. You can create a bot to identify and automatically tag NSFW posts, to ban users with offensive language, fact check, or simply reply with a meme.

Reddit not only allows you to build a bot, but encourages you to do so. How you may ask? Through its official application programming interface¹ (more about this next).

How can you do it? The easiest way personally is using the Python library praw². This library simplifies how you connect to the Reddit API, how to read messages, detect mentions and how to reply.

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

André Ribeiro
André Ribeiro

Written by André Ribeiro

Data scientist professional with a keen interest in Machine learning & Artificial Intelligence. https://www.linkedin.com/in/asantos-ribeiro

No responses yet