From 8676242d11c2550225dce5b4f1d7c621d2082906 Mon Sep 17 00:00:00 2001 From: Nova Cat Date: Tue, 17 Dec 2024 16:36:45 -0800 Subject: [PATCH] patch --- sweebot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sweebot.py b/sweebot.py index ccd0468..5d16dbb 100644 --- a/sweebot.py +++ b/sweebot.py @@ -675,8 +675,8 @@ while True: details = request.execute() title = details['items'][0]['snippet']['title'] channel_yt = details['items'][0]['snippet']['channelTitle'] - channelviews = details['items'][0]['statistics']['viewCount'] - multiline(f"(" + nick + ") [▶️ YouTube] {title} | Author: {channel_yt} | {views} Views", channel) + views = details['items'][0]['statistics']['viewCount'] + multiline(f"({nick}) [▶️ YouTube] {title} | Author: {channel_yt} | {views} Views", channel) except Exception as ex: multiline("(" + nick + ") [YouTube Error, is it a valid YouTube URL?]", channel) print(traceback.format_exc())