Compare commits
4 Commits
1a8f84b333
...
main
Author | SHA1 | Date | |
---|---|---|---|
019e60450f
|
|||
7672107c68
|
|||
ee6ea4eed4
|
|||
fed280e6c5
|
@@ -54,16 +54,17 @@ class Song:
|
|||||||
timestamp=self.trigger_message.edited_at or self.trigger_message.created_at,
|
timestamp=self.trigger_message.edited_at or self.trigger_message.created_at,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
uploader_value = None
|
||||||
if self.player.uploader_url:
|
if self.player.uploader_url:
|
||||||
embed.add_field(
|
if self.player.uploader:
|
||||||
name="Uploader",
|
uploader_value = f"[{self.player.uploader}]({self.player.uploader_url})"
|
||||||
value=f"[{self.player.uploader}]({self.player.uploader_url})",
|
else:
|
||||||
)
|
uploader_value = self.player.uploader_url
|
||||||
elif self.player.uploader:
|
elif self.player.uploader:
|
||||||
embed.add_field(
|
uploader_value = self.player.uploader
|
||||||
name="Uploader",
|
|
||||||
value=self.player.uploader,
|
if uploader_value:
|
||||||
)
|
embed.add_field(name="Uploader", value=uploader_value)
|
||||||
if self.player.like_count:
|
if self.player.like_count:
|
||||||
embed.add_field(name="Likes", value=f"{self.player.like_count:,}")
|
embed.add_field(name="Likes", value=f"{self.player.like_count:,}")
|
||||||
if self.player.view_count:
|
if self.player.view_count:
|
||||||
@@ -77,7 +78,7 @@ class Song:
|
|||||||
embed.set_image(self.player.thumbnail_url)
|
embed.set_image(self.player.thumbnail_url)
|
||||||
|
|
||||||
embed.set_footer(
|
embed.set_footer(
|
||||||
text=f"queued by {self.trigger_message.author.name}",
|
text=f"Queued by {self.trigger_message.author.name}",
|
||||||
icon_url=(
|
icon_url=(
|
||||||
self.trigger_message.author.avatar.url
|
self.trigger_message.author.avatar.url
|
||||||
if self.trigger_message.author.avatar
|
if self.trigger_message.author.avatar
|
||||||
|
@@ -90,13 +90,13 @@ async def pause(message):
|
|||||||
|
|
||||||
async def fast_forward(message):
|
async def fast_forward(message):
|
||||||
tokens = commands.tokenize(message.content)
|
tokens = commands.tokenize(message.content)
|
||||||
parser = arguments.ArgumentParser(tokens[0], "skip current sponsorblock segment")
|
parser = arguments.ArgumentParser(tokens[0], "skip the current sponsorblock segment")
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-s",
|
"-s",
|
||||||
"--seconds",
|
"--seconds",
|
||||||
nargs="?",
|
nargs="?",
|
||||||
type=lambda v: arguments.range_type(v, lower=0, upper=300),
|
type=lambda v: arguments.range_type(v, lower=0, upper=300),
|
||||||
help="the amount of seconds to fast forward instead",
|
help="the number of seconds to fast forward instead",
|
||||||
)
|
)
|
||||||
if not (args := await parser.parse_args(message, tokens)):
|
if not (args := await parser.parse_args(message, tokens)):
|
||||||
return
|
return
|
||||||
|
@@ -5,4 +5,4 @@ disnake_paginator
|
|||||||
psutil
|
psutil
|
||||||
PyNaCl
|
PyNaCl
|
||||||
youtube_transcript_api
|
youtube_transcript_api
|
||||||
yt-dlp
|
yt-dlp[default] @ https://github.com/yt-dlp/yt-dlp/archive/master.tar.gz
|
||||||
|
Reference in New Issue
Block a user