Give me architecture tips for my python project.
📰 Reddit r/learnprogramming
Learn how to structure your Python Discord bot project with abstraction and modular design
Action Steps
- Create a separate module for handling Discord events
- Abstract Discord events into custom events for main.py
- Use a modular design to organize your project's codebase
- Implement a local LLM to process and respond to events
- Test your project's architecture with sample events and data
Who Needs to Know This
This advice benefits a solo developer or a small team working on a Discord bot project, as it promotes maintainable and scalable code
Key Insight
💡 Abstracting Discord events into custom events helps decouple your project's logic from the Discord API, making it easier to maintain and update
Share This
Improve your Python Discord bot's architecture with abstraction and modular design!
Full Article
So, I make my own I'd say psuedo-user which shall imitate as a normal one person in Discord. Yeah, it should work on a local LLM. Okay, I am thinking about: "Should I make an abstraction from Discords' events for main.py?". What do I mean? I get Discord events which are written in a module, I get the necessary data and make my own event for main.py. ... No way, I can't add the image of
DeepCamp AI