def on_quit(): print("Exiting ...") print("Saving settings ...") settings.save() print("Setting presence") call_threadsafe(set_client_presence, False) client.disconnect() loop.close()
def on_quit(): print("Exiting ...") print('Saving settings ...') settings.save() client.disconnect() loop.close()