1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 21:44:21 +00:00
royalnet/royalpack/commands/youtube.py

16 lines
339 B
Python
Raw Normal View History

2020-05-10 22:46:12 +00:00
from typing import *
from .play import PlayCommand
2019-11-11 08:56:08 +00:00
class YoutubeCommand(PlayCommand):
2019-11-11 08:56:08 +00:00
name: str = "youtube"
aliases = ["yt"]
description: str = "Cerca un video su YouTube e lo aggiunge alla coda della chat vocale."
syntax = "{ricerca}"
2019-11-11 08:56:08 +00:00
2020-03-28 18:38:14 +00:00
async def get_urls(self, args):
return [f"ytsearch:{args.joined()}"]