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

Add option to start bot without db #70

Open
wizzdom opened this issue Jan 16, 2025 · 1 comment
Open

Add option to start bot without db #70

wizzdom opened this issue Jan 16, 2025 · 1 comment
Labels
enhancement New feature or request utility New utility feature

Comments

@wizzdom
Copy link
Member

wizzdom commented Jan 16, 2025

Add either an envvar or commandline argument to start the bot without the database.
This should make it easier to test the bot locally when the database isn't being used.

@wizzdom wizzdom added enhancement New feature or request utility New utility feature labels Jan 16, 2025
@wizzdom wizzdom added this to Webgroup Jan 16, 2025
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Webgroup Jan 16, 2025
@novanai
Copy link
Contributor

novanai commented Jan 20, 2025

An idea: write a decorator for commands which marks them as requiring the DB, then stop the bot from registering these commands on startup.

e.g. instead of using the usual @plugin.include hook, write a custom one which will not register the command if it requires the db and the bot is being run without the db.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request utility New utility feature
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants