Skip to content

Commit

Permalink
Minor bug fix
Browse files Browse the repository at this point in the history
#3 Url Paste Bug fixed
  • Loading branch information
Akalabaya committed Aug 19, 2022
1 parent a738d99 commit fca8ee6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions socketmodes/game_client_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,8 @@ def load_play():
s = socket.socket()
sn = pyperclip.paste()
url = ""
if str(sn).startswith("https://") or str(sn).startswith("http://"):
if "ngrok" in str(sn):
url = str(sn)
if (str(sn).startswith("https://") or str(sn).startswith("http://")) and "ngrok" in str(sn):
url = str(sn)
else:
url = input("Enter a URL to connect:")
# Define the port on which you want to connect
Expand Down

0 comments on commit fca8ee6

Please sign in to comment.