From 7770ec0ae7444e7b9866390760220cc5335ba0d8 Mon Sep 17 00:00:00 2001 From: Georgios Atheridis Date: Sun, 22 Jan 2023 21:33:11 +0000 Subject: [PATCH] opgg now works with @ symbol too --- ihaspeks/commands/opgg.py | 2 ++ 1 file changed, 2 insertions(+) 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: -- 2.30.2