I’ve never made a Slack App before and i’ve wanted to make a somewhat simple app that would get me up and running with a making Slack App. A Karma app seem like something that easy enough that it wouldn’t take to long to do, but still get me used to the Slack API. What i’ll need for this app
On the Slack side the app will need
- Be able to read from a channel. The bot will need to be able to watch channel to see if someone give someone else karma
- Be able to write to a channel to let the user know that karma has been given
- A way to find all channels (One one hand the bot should be invite to the channel, but if you have 1000 channel that can be hard on the user)
- A slash command so that users can run (to see their own karma)
- A Slack app home tab to show totals (maybe weekly or monthly)
Outside of Slack the app will need
- A database, I will probably use SqlAlchemy for this.
I’ll probably start off in the next post with code for reading and writing to a Slack channel.