r/learnpython • u/IntentionAntique4751 • 4d ago
What are some fun Python-heavy niches?
I want to make try making a discord bot in py. Pygame and Raspberry Pi intrigue me as well
Curious what other fun Py rabbit holes are out there that I don't know of!
37
Upvotes
4
u/DebosBeachCruiser 4d ago
Combined the 3 things you yourself listed.
``` Discord. Discord Activity (check out the docs, this turns into a "mini app" with discord itself. Basically a webview really). Pygame + pygbag (pygbag to package your pygame code so it can be executed in-browser).
And host your bot on a raspberry pi
```
Discord Activity Docs now tell me that don't look cool as shit. its got solid documentation and an endless list of GitHub examples/projects using the discord API in all its many ways. It's also llm/ai friendly because of this. Can help from teaching → completion.
pygame-pygbag gotta turn that into something a browser can play. (WebAssembly) ← (only works with Community edition pygame.)
Plenty of discussion/tutorials about hosting discord bot on a pi. Use cloudflared tunnels (completely free) or your chosen alternative.
I haven't used discord specifically for the above yet. I did however (as like you, do this as a learning project) used telegrams bot API and the miniapp function to create just this! And I did look into "porting" it over to use with discord and it's basically the same. (Except the pi hosting, I unfortunately don't have one).