From 94bc2a08e22c57c6ea43a9e87aac76f44096b950 Mon Sep 17 00:00:00 2001 From: Georgios Atheridis Date: Thu, 5 May 2022 19:07:17 +0000 Subject: [PATCH] stripping twitch name whitespaces --- skgyorugo/commands/addaccount.py | 1 + 1 file changed, 1 insertion(+) diff --git a/skgyorugo/commands/addaccount.py b/skgyorugo/commands/addaccount.py index 8b292d0..7ce1c3a 100644 --- a/skgyorugo/commands/addaccount.py +++ b/skgyorugo/commands/addaccount.py @@ -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: -- 2.30.2