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

tts not work until restart unless server is online first #75

Open
NinjaBunny9000 opened this issue Oct 25, 2019 · 0 comments
Open

tts not work until restart unless server is online first #75

NinjaBunny9000 opened this issue Oct 25, 2019 · 0 comments
Labels
WTF Somethin's fucky..

Comments

@NinjaBunny9000
Copy link
Owner

because tts is imported when a connection is recieved with the esrver, functionality is disabled unless server goes online first (happens in on-connect but only at begining of server start?)

words are hard. here's some code:

@sio.on('connect')
async def on_connect():
    import tts  # only import this if the websocket connection is made
    log.debug(f"{__name__}.... CONNECTERD!")
    await sio.emit('connect',{'data':'CONNECTERD!'})
    await sio.emit('get_sfx')
@NinjaBunny9000 NinjaBunny9000 added the WTF Somethin's fucky.. label Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WTF Somethin's fucky..
Projects
None yet
Development

No branches or pull requests

1 participant