From: Georgios Atheridis Date: Thu, 5 May 2022 19:07:17 +0000 (+0000) Subject: stripping twitch name whitespaces X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=94bc2a08e22c57c6ea43a9e87aac76f44096b950;p=ihaspeks%2Faptbot-ihaspeks.git stripping twitch name whitespaces --- 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: