Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot: Custom NameFlag handlers #23

Closed
diamondburned opened this issue May 6, 2020 · 1 comment
Closed

Bot: Custom NameFlag handlers #23

diamondburned opened this issue May 6, 2020 · 1 comment

Comments

@diamondburned
Copy link
Owner

diamondburned commented May 6, 2020

Since some NameFlags would be either pretty tedious or straight up impossible to implement without making the code a mess, I propose a pluggable NameFlag handler API.

This would close #22.

Current Proposal

type NameFlagHandler interface {
	HandleEvent(v interface{}) error
	HandleMessage(g *gateway.MessageCreateEvent) error
}

type Handlers map[rune]NameFlagHandler
@diamondburned
Copy link
Owner Author

Closed in favor of #24.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant