From 3bf52b92ed3f9581d0a2021b079f72338619056a Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 9 Oct 2019 00:55:56 +0200 Subject: [PATCH] Merge some things --- royalnet/commands/{royalgames => royalmusic}/mp3.py | 0 royalnet/commands/royalmusic/play.py | 4 +++- royalnet/commands/{royalgames => royalmusic}/zawarudo.py | 0 3 files changed, 3 insertions(+), 1 deletion(-) rename royalnet/commands/{royalgames => royalmusic}/mp3.py (100%) rename royalnet/commands/{royalgames => royalmusic}/zawarudo.py (100%) diff --git a/royalnet/commands/royalgames/mp3.py b/royalnet/commands/royalmusic/mp3.py similarity index 100% rename from royalnet/commands/royalgames/mp3.py rename to royalnet/commands/royalmusic/mp3.py diff --git a/royalnet/commands/royalmusic/play.py b/royalnet/commands/royalmusic/play.py index b8494fe3..c23cd0ef 100644 --- a/royalnet/commands/royalmusic/play.py +++ b/royalnet/commands/royalmusic/play.py @@ -40,7 +40,7 @@ class PlayNH(NetworkHandler): "outtmpl": f"./downloads/{datetime.datetime.now().timestamp()}_%(title)s.%(ext)s" } # Start downloading - dfiles: typing. List[YtdlDiscord] = await asyncify(YtdlDiscord.create_from_url, data["url"], **ytdl_args) + dfiles: typing.List[YtdlDiscord] = await asyncify(YtdlDiscord.create_from_url, data["url"], **ytdl_args) await bot.add_to_music_data(dfiles, guild) # Create response dictionary response = { @@ -55,6 +55,8 @@ class PlayNH(NetworkHandler): class PlayCommand(Command): name: str = "play" + aliases = ["p"] + description: str = "Aggiunge un url alla coda della chat vocale." syntax = "[ [guild] ] (url)" diff --git a/royalnet/commands/royalgames/zawarudo.py b/royalnet/commands/royalmusic/zawarudo.py similarity index 100% rename from royalnet/commands/royalgames/zawarudo.py rename to royalnet/commands/royalmusic/zawarudo.py