stripping twitch name whitespaces
authorGeorgios Atheridis <atheridis@tutamail.com>
Thu, 5 May 2022 19:07:17 +0000 (19:07 +0000)
committerGeorgios Atheridis <atheridis@tutamail.com>
Thu, 5 May 2022 19:07:17 +0000 (19:07 +0000)
skgyorugo/commands/addaccount.py

index 8b292d02ea21811fed6ef6159b534fe5cd4b7403..7ce1c3ae83ba3fe231d47552daf38b37a08a9428 100644 (file)
@@ -30,6 +30,7 @@ PATH = os.path.join(PATH, "..")
 def main(bot: Bot, message: Message):
     msg = ' '.join(message.value.split(' ')[1:])
     summoner_name, twitch_name = msg.split('|')
+    twitch_name = twitch_name.strip()
     summoner = lol_api.summoner_v4.get_summoner_from_name(summoner_name)
     twitch = ttv_api.users.get_users(user_logins=[twitch_name])
     if summoner is None: