How Our Slack Bot "Dicebot" Will Work
Our first lambda function is going to give us a fully functional back-end for a basic chat bot. We're going to develop this for Slack, since Slack is widely used and available for free.
Dicebot Project Description#
Our first lambda function is going to give us a fully functional back-end for a basic chat bot. We're going to develop this for Slack, since Slack is widely used and available for free.
The use case is as follows:
Dicebot should provide users in a slack channel the ability to roll one or more dice by invoking a slash command /roll
. The dice being rolled can have any number of sides, but our bot will default to rolling a single 20-sided die when no parameters are specified. When multiple dice are rolled at the same time, the bot should provide the sum of all rolled values in addition to each individual roll.
This page is a preview of Create a Serverless Slackbot with AWS Lambda and Python