From: Georgios Atheridis Date: Sun, 22 Jan 2023 21:33:11 +0000 (+0000) Subject: opgg now works with @ symbol too X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=7770ec0ae7444e7b9866390760220cc5335ba0d8;p=ihaspeks%2Faptbot-ihaspeks.git opgg now works with @ symbol too --- diff --git a/ihaspeks/commands/opgg.py b/ihaspeks/commands/opgg.py index c6fd15e..5f955c7 100644 --- a/ihaspeks/commands/opgg.py +++ b/ihaspeks/commands/opgg.py @@ -46,6 +46,8 @@ def main(bot: Bot, message: Message): ttv_api.users.get_users(user_logins=[message.channel]), ) else: + if twitch_user.startswith("@"): + twitch_user = twitch_user[1:] twitch_id = ttv_api.users.get_users(user_logins=[twitch_user]) if not twitch_id: