Merubokkusu / Discord-S.C.U.M

A Discord API Wrapper for Userbots/Selfbots written in Python.
MIT License
581 stars 170 forks source link

Discum + Flask in debug mode #473

Closed TheWever closed 9 months ago

TheWever commented 11 months ago

discum doesn't seem to work properly in flask debug mode Im able to get the gateway up but when calling bot.getMessages the thread seems to stall

also using socketio if thats important?

bot = discum.Client(token=token, log={"file": False, "console": False})
bot.gateway.command(handler)
Thread(target=bot.gateway.run, daemon=True).start()
socketio.run(app, ..., debug=True)