Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Implemented optional database #18

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Implemented optional database #18

wants to merge 3 commits into from

Conversation

aosync
Copy link
Contributor

@aosync aosync commented May 25, 2020

This idea is suggested in #8

Basically, I did it with a function that wraps the command handlers like moderatorOnly but called needsDatabase and it catches gracefully whether the database has been correctly initialized in db init, and prevents to command to be executed if it isn't the case.

db/db.go Outdated Show resolved Hide resolved
@mlvzk mlvzk force-pushed the master branch 3 times, most recently from c23dc68 to c85e56c Compare May 26, 2020 19:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants