steps-boi

steps boi is a Discord bot that sums the steps logged by a community in a Discord channel.

Inspiration

The step challenge this was built for, and why a bot beat a spreadsheet.

How it works

Someone posts their steps as a message:

!steps 12234

Reacting to that message with a 👍 counts it, and the bot prints an updated progress bar as steps accumulate. Submissions above a threshold, 5,000 steps for example, earn a star.

The running step and star counts are stored in challenge-data.json. The bot is scoped by user and channel ID, so it only responds to one person in one channel.

Challenges

The parts that were fiddly: reaction events, keeping the count consistent, or not double-counting a message.

What I learned

What this taught you about the Discord API or about writing something a group of people actually used.

What’s next

Features or fixes you have in mind.