diff --git a/Attrap_bot.py b/Attrap_bot.py index 9a0cb037650480516caab17d91276dcc77e3279b..ad7237b6cb24141aa27d9e52fd104ac0e26961b3 100644 --- a/Attrap_bot.py +++ b/Attrap_bot.py @@ -32,7 +32,10 @@ class Attrap_bot: self.password = password def set_port(self, port): - self.port = port + if not isinstance(port, int): + self.port = int(port) + else: + self.port = port def set_ssl(self, ssl): self.ssl = ssl