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

ENH: Add is_online property to easily determine whether we are online or not #36

Merged
merged 3 commits into from Mar 18, 2024

Conversation

hhslepicka
Copy link
Contributor

Closes #35

In [1]: from botcity.maestro import *

In [2]: maestro = BotMaestroSDK()

In [3]: maestro.is_online
Out[3]: False

In [4]: import os

In [5]: SERVER = os.getenv("BOTCITY_SERVER")

In [6]: LOGIN = os.getenv("BOTCITY_LOGIN")

In [7]: KEY = os.getenv("BOTCITY_KEY")

In [8]: maestro.login(server=SERVER, login=LOGIN, key=KEY)

In [9]: maestro.is_online
Out[9]: True

Attn. @morgannadev

@hhslepicka hhslepicka added the enhancement New feature or request label Mar 15, 2024
@hhslepicka hhslepicka merged commit 2eb0d24 into botcity-dev:main Mar 18, 2024
4 checks passed
@hhslepicka hhslepicka deleted the feat/add-is_online-flag branch March 18, 2024 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add flag is_online which will determine if the maestro instance is connected or not
2 participants