Refactor command definitions across multiple cogs to replace hybrid commands with regular commands for consistency. This change enhances clarity and standardizes command handling throughout the bot.
This commit is contained in:
@@ -22,7 +22,7 @@ class Youtube(commands.Cog):
|
||||
self.bot = bot
|
||||
|
||||
|
||||
@commands.hybrid_command(name='yt', aliases=['youtube'])
|
||||
@commands.command(name='yt', aliases=['youtube'])
|
||||
async def search_youtube(self, ctx, *, search_query):
|
||||
query_string = urllib.parse.urlencode({'search_query': search_query})
|
||||
html_content = urllib.request.urlopen('http://www.youtube.com/results?' + query_string)
|
||||
|
||||
Reference in New Issue
Block a user