lulzapps / kekbo-server

0 stars 0 forks source link

API Notes

Login

{"action": "login", "username": <str>, "password": <str>}

Send Message

{"action": "send_message", "to": <uuid:str>, "message": <str>}

Running

Windows

Now you're ready to start and stop the kekbosrv.py script as needed. There are two main ways to do:

The Normal Python-like Way

python kekbosrv.py

The problem with this way is that I have yet to find a way to pass in the log-level and see it get adjusted on the output. For example, python kekbosrv.py --log-level debug still only shows INFO logs (and above)

Using Uvicorn

As I write this uvicorn "just works" in my environment after I load up the Python virtual environment (it's listed in requirements.txt). Using uvicorn I am able to adjust the log levels:

uvicorn kekbosrv:app --log-level debug