Skip to content

Commit

Permalink
format and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
itsTheFae committed Jul 29, 2024
1 parent 392581a commit e5f945b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion musicbot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
DATA_FILE_SERVERS,
DATA_GUILD_FILE_CUR_SONG,
DATA_GUILD_FILE_QUEUE,
DEFAULT_BOT_NAME,
DEFAULT_OWNER_GROUP_NAME,
DEFAULT_PERMS_GROUP_NAME,
DEFAULT_PING_HTTP_URI,
Expand Down Expand Up @@ -7277,8 +7278,11 @@ async def cmd_uptime(self) -> CommandResponse:
"""
uptime = time.time() - self._init_time
delta = format_song_duration(uptime)
name = DEFAULT_BOT_NAME
if self.user:
name = self.user.name
return Response(
f"{self.user.name} has been up for `{delta}`",
f"{name} has been up for `{delta}`",
delete_after=30,
)

Expand Down
2 changes: 1 addition & 1 deletion musicbot/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def cookies_enabled(self) -> bool:
Get status of cookiefile option in ytdlp objects.
"""
return all(
["cookiefile" in ytdl.params for ytdl in [self.safe_ytdl, self.unsafe_ytdl]]
"cookiefile" in ytdl.params for ytdl in [self.safe_ytdl, self.unsafe_ytdl]
)

def enable_ytdl_cookies(self) -> None:
Expand Down

0 comments on commit e5f945b

Please sign in to comment.