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

Server updates #90

Merged
merged 4 commits into from
Mar 28, 2024
Merged

Server updates #90

merged 4 commits into from
Mar 28, 2024

Conversation

chadbailey59
Copy link
Contributor

Getting the server ready for the hackathon, etc.

@chadbailey59 chadbailey59 changed the title WIP: Server updates Server updates Mar 28, 2024
@chadbailey59
Copy link
Contributor Author

I've refactored the server quite a bit to add some functionality. I'll add better deploy options (Docker, Heroku button, etc) in a follow-up.

Copy link
Contributor

@Moishe Moishe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few minor things but overall LGTM!

examples/server/daily-bot-manager.py Show resolved Hide resolved

@app.route("/start/<string:text>", methods=["GET", "POST"])
def start(text):
if text in APPS:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: might be easier to read (or at least less indentation) if you check if text not in APPS and then immediately raise an exception.

examples/server/daily-bot-manager.py Outdated Show resolved Hide resolved
examples/server/daily-bot-manager.py Outdated Show resolved Hide resolved
@chadbailey59 chadbailey59 merged commit d4e3e17 into main Mar 28, 2024
@chadbailey59 chadbailey59 deleted the cb/server branch March 28, 2024 20:03
chadbailey59 added a commit that referenced this pull request Apr 2, 2024
* updated server readme

* fixup

* Refactored server

* fixup
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.

2 participants