Skip to content

State should not be a singleton #35

@s1kx

Description

@s1kx

Imagine creating multiple bots in a single package (e.g. with shared guilds) - their state should be independent and ideally localized to each bot, and a bot db should then have buckets for guilds etc.

Furthermore, I would propose separating the logic of the bot state and guild state into their own types.

http://peter.bourgon.org/blog/2017/06/09/theory-of-modern-go.html

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions