"Python + Discord = Great Bots!"
summary
Builds a dice-rolling Discord bot using the Pycord library and Discord slash commands, reading the bot token from environment variables, using async handlers with context.respond and await. It rolls any number of dice with any-sided dN support, offers ephemeral messages (whisper) and optional direct-message delivery, and runs locally or on hosts like Fly.io. Deployment notes include the 100-server app verification cutoff and sharding for thousands (use AutoShardedBot); sample code runs and demonstrates all features.
AI-written summary · about
chapters (24)
- 0:00Intro
- 1:02Alexs Background
- 3:44Agenda
- 4:57Tools Needed
- 6:22Dice
- 8:42Intents Scopes
- 10:13Discord History
- 13:01What We Want
- 13:59Sneak Peek
- 15:27Getting Started
- 16:34User Input
- 17:08Command Options
- 19:51Output
- 21:06Whisper
- 22:32User Whisper
- 23:04Direct Messages
- 23:39Code
- 25:45Installation
- 26:52Deployment
- 27:58Publish
- 28:33App Verification
- 29:30Privileged Intents
- 30:15Sharding
- 31:21Conclusion
related talks
27mTelegram bots with Python? Why not?
31mBuildbots Rollout!
39mAutomate the Boring Stuff with Slackbot
55mWorkshop 1 - Let's Make a Realtime Game with Django Channels
21mThe Elephant and the Serpent: Using Mastodon with Python
01h 01mPython in Cloudflare Workers – Running Pyodide on the Edge
31mLeveraging an instant messaging protocol to build a scalable cloud architecture
01h 31mBuilding a ChatBot with Python, NLTK and scikit
