mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Merge some things
This commit is contained in:
parent
9cbcce32da
commit
3bf52b92ed
3 changed files with 3 additions and 1 deletions
|
@ -40,7 +40,7 @@ class PlayNH(NetworkHandler):
|
||||||
"outtmpl": f"./downloads/{datetime.datetime.now().timestamp()}_%(title)s.%(ext)s"
|
"outtmpl": f"./downloads/{datetime.datetime.now().timestamp()}_%(title)s.%(ext)s"
|
||||||
}
|
}
|
||||||
# Start downloading
|
# 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)
|
await bot.add_to_music_data(dfiles, guild)
|
||||||
# Create response dictionary
|
# Create response dictionary
|
||||||
response = {
|
response = {
|
||||||
|
@ -55,6 +55,8 @@ class PlayNH(NetworkHandler):
|
||||||
class PlayCommand(Command):
|
class PlayCommand(Command):
|
||||||
name: str = "play"
|
name: str = "play"
|
||||||
|
|
||||||
|
aliases = ["p"]
|
||||||
|
|
||||||
description: str = "Aggiunge un url alla coda della chat vocale."
|
description: str = "Aggiunge un url alla coda della chat vocale."
|
||||||
|
|
||||||
syntax = "[ [guild] ] (url)"
|
syntax = "[ [guild] ] (url)"
|
||||||
|
|
Loading…
Reference in a new issue