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

Improve example project #8

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Improve example project #8

wants to merge 4 commits into from

Conversation

Mortasen
Copy link
Contributor

@Mortasen Mortasen commented Sep 7, 2023

This PR improves example project in several ways:

  • Webhook now is set automatically on startup using DETA_SPACE_APP_HOSTNAME environment variable
  • Commands moved from __init__ to utils.commands since it's not that important to be in src.__init__
  • Created config.py in utils to make working with environment variables more comfortable
  • Added possibility to run bot with long-polling in order to test it locally without white IP-address

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

Successfully merging this pull request may close these issues.

1 participant