Automating Community: Build-a-Discord Bot
summary
A bot that automatically removes the unverified role from members who react to a welcome message, implemented with discord.js and deployed on fly.io via flyctl. Registration uses the Discord Developer Portal with a token stored as an env var; interaction is a /verify slash command that iterates reacted users, converts users to members, and removes the role. Initial backlog peaks at 323 people reveal Discord API limits of 100 items per request, solved by paginating fetches; deployment works though verification runs noticeably slower when processing many pages.
AI-written summary · about
chapters (15)
- 0:00Introduction to talk
- 1:24About the speaker
- 2:26Discord for communities
- 3:51Manual verification struggles
- 5:36Why build a Discord bot
- 6:17Three parts of a bot
- 7:22Registering the bot
- 9:09Writing the bot code
- 11:17Verifying users logic
- 14:23Deploying with Fly.io
- 16:29Adding bot to server
- 18:13Fixing API limits issue
- 20:45Final bot functionality
- 21:48Encouragement to automate
- 22:54Closing remarks
related talks
54mHow to get the most out of your Discord community
17mUsing bots to Improve Humanity
41mHacking Culture with Javascript
46mAutomating Development and Support Processes: From Bots to Code Review
25mDiscover How to Streamline User Onboarding With Network APIs
12mQ & A
27mChat Robots Next Level Tooling
08mFully Automated Luxury Standups
