From 5d58d056680fb105363d797662afbfad207ed985 Mon Sep 17 00:00:00 2001 From: Lukas Blacha Date: Wed, 8 Feb 2023 12:10:18 +0100 Subject: [PATCH] Changed Google-Search to Youtube --- Music-Bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Music-Bot.py b/Music-Bot.py index 99e7f1b..9bb64c2 100644 --- a/Music-Bot.py +++ b/Music-Bot.py @@ -84,12 +84,12 @@ else: before_options="-threads 2", options=ffmpeg_options), data=data) - class Google(discord.ui.View): + class Youtube(discord.ui.View): def __init__(self, query: str): super().__init__() # We need to quote the query string to make a valid url. Discord will raise an error if it isn't valid. query = quote_plus(query) - url = f"https://www.google.com/search?q={query}" + url = f"https://www.youtube.com/results?search_query={query}" # Link buttons cannot be made with the # decorator, so we have to manually create one.