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())