Skip to content

Commit

Permalink
small change
Browse files Browse the repository at this point in the history
Make np text less ugly
  • Loading branch information
BabyBoySnow committed Dec 16, 2023
1 parent 6083544 commit 3d0132e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions musicbot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ async def on_player_play(self, player, entry):
if match:
videoID = match.group(1)
else:
log.error("Unkknown link or unable to get video ID.")
log.error("Unknown link or unable to get video ID.")
content = self._gen_embed()
if self.config.now_playing_mentions:
content.title = None
Expand Down Expand Up @@ -3218,7 +3218,7 @@ async def cmd_np(self, player, channel, guild, message):
) and player.current_entry.meta.get("author", False):
np_text = self.str.get(
"cmd-np-reply-author",
"Now {action}: **{title}** added by **{author}**\nProgress: {progress_bar} {progress}\n\N{WHITE RIGHT POINTING BACKHAND INDEX} <{url}>",
"Currently {action}: **{title}** added by **{author}**\nProgress: {progress_bar} {progress}\n\N{WHITE RIGHT POINTING BACKHAND INDEX} <{url}>",
).format(
action=action_text,
title=player.current_entry.title,
Expand All @@ -3230,7 +3230,7 @@ async def cmd_np(self, player, channel, guild, message):
else:
np_text = self.str.get(
"cmd-np-reply-noauthor",
"Now {action}: **{title}**\nProgress: {progress_bar} {progress}\n\N{WHITE RIGHT POINTING BACKHAND INDEX} <{url}>",
"Currently {action}: **{title}**\nProgress: {progress_bar} {progress}\n\N{WHITE RIGHT POINTING BACKHAND INDEX} <{url}>",
).format(
action=action_text,
title=player.current_entry.title,
Expand All @@ -3255,10 +3255,10 @@ async def cmd_np(self, player, channel, guild, message):
np_text.replace("Now ", "")
.replace(action_text, "")
.replace(": ", "", 1)
.replace("Currently ", "")
)
content = self._gen_embed()
content.title = action_text
content.add_field(name="** **", value=np_text, inline=True)
content.add_field(name=f"Currently {action_text}", value=np_text, inline=True)
content.set_image(
url=f"https://i1.ytimg.com/vi/{videoID}/hqdefault.jpg"
)
Expand Down

0 comments on commit 3d0132e

Please sign in to comment.