mirror of
https://github.com/TriM-Organization/LiteyukiBot-TriM.git
synced 2024-11-25 16:45:03 +08:00
18 lines
417 B
Python
18 lines
417 B
Python
|
ASGI_DRIVER = "~fastapi"
|
||
|
HTTPX_DRIVER = "~httpx"
|
||
|
WEBSOCKETS_DRIVER = "~websockets"
|
||
|
|
||
|
|
||
|
def get_driver_string(*argv):
|
||
|
output_string = ""
|
||
|
if ASGI_DRIVER in argv:
|
||
|
output_string += ASGI_DRIVER
|
||
|
for arg in argv:
|
||
|
if arg != ASGI_DRIVER:
|
||
|
output_string = f"{output_string}+{arg}"
|
||
|
return output_string
|
||
|
|
||
|
|
||
|
def get_driver_full_string(*argv):
|
||
|
return f"DRIVER={get_driver_string(argv)}"
|