Twitter Bot built with Node, AWS Lamdba, and AWS SNS
┌───────────┐
Tweet at me
and I'll reply with your
message in a sign!
└───────────┘
(\__/) ||
(•ㅅ•) ||
/ づ
@signbunnyplz
This bot is built upon two Lambda Functions
- fetchMentions checks for new mentions. This runs every 5 minutes, publishing the mentions as a new notification on an SNS topic
- sendTweet is triggered by SNS Notifications. It processes the tweets and replies with a formatted sign.
Based largely on DownloadThisVideo, another Twitter bot using the same AWS Lambda/SNS setup
Formatting text with a non-monospace font is not a trivial task, so currently we're just avoiding the issue and keeping things left aligned and letting words run off the sign.
We could convert the text to Unicode monospace, but that's not a 1-to-1 response. Potentially another cool bot, though.
(Twitter's font stack is 14/20 "Helvetica Neue", Helvetica, Arial, sans-serif
)
Genericize this stack to build a ReplyBot
NPM Module?