DEV Community

SemTiOne
SemTiOne

Posted on

Heatmap Bot v1.2.0 - Automating Ko-fi Payments with Webhooks

Quick update on Heatmap Bot - just shipped v1.2.0.

The main change: automated Ko-fi activation

Previously the payment flow was painful:

  1. Customer pays on Ko-fi
  2. I get an email notification
  3. I manually run /grant in Discord
  4. Customer waits

Now:

  1. Customer pays on Ko-fi, includes their Discord Server ID in message
  2. Ko-fi webhook fires
  3. Bot parses the Server ID from the message
  4. Paid tier activates instantly

The activation code system handles edge cases where they forget their Server ID.

Other changes

  • /announce command — lets me broadcast updates to subscribed servers
  • Feedback reference IDs (#A3F92B1C) for support tracking
  • Brute force protection on /activate — max 5 attempts/hour
  • HMAC verification on Ko-fi webhooks

Full bot: https://ko-fi.com/semtione

Invite Link: https://discord.com/oauth2/authorize?client_id=1482225606761386085&permissions=2147601408&integration_type=0&scope=bot+applications.commands

Top comments (0)