SoSad
Drop in. Scale up.
A modern, modular, type-safe Discord framework built on Hikari.
Change one line. Get production-ready features instantly.
Why SoSad?
For hobby bots → production
| Feature | discord.py | SoSad |
|---|---|---|
| Rate limiting | Manual | Automatic |
| Error handling | try/except | Pipeline |
| DI | None | FastAPI-style |
| Middleware | Before/After | ASGI pipeline |
| Plugins | Manual | Auto-discover |
| Config | .env manual | class Config(sosad.Settings) |
| Type safety | Partial | Full strict |
For new projects
import hikari
import sosad
class Config(sosad.Settings):
token: str
bot = sosad.Client(token=Config().token, intents=hikari.Intents.ALL_UNPRIVILEGED)
@sosad.slash_command("ping", "Pong!")
async def ping(ctx: sosad.InteractionContext):
await ctx.respond("Pong!")
bot.run()
Quick install
Features
-
:material-speedometer:{ .lg .middle } Fast
Auto rate limiting per-route. No more HTTP 429s.
-
:material-shield-lock:{ .lg .middle } Safe
Full type hints. Pyright strict. Catch errors before runtime.
-
:material-puzzle:{ .lg .middle } Modular
Plugin auto-discovery. Drop files in
plugins/, done. -
:material-cog:{ .lg .middle } Powerful
DI, middleware, components, background tasks. All included.