def get_currently_playing_embed(current_track: Track, current_time=None): currently_playing_embed = StyledEmbed( title="<:music_note:718120922367787099> " + current_track.title) currently_playing_embed.set_author(name="Now playing", url=current_track.uri) if current_time: currently_playing_embed.description = get_song_progress_bar( current_time, current_track.duration) currently_playing_embed.add_field(name="Duration", value=get_friendly_time_delta( current_track.duration)) currently_playing_embed.add_field(name="Artist", value=current_track.author) if current_track.thumb is not None: currently_playing_embed.set_thumbnail(url=current_track.thumb) return currently_playing_embed
async def send_bot_help(self, mapping): embed = StyledEmbed(title='chime help') embed.set_thumbnail(url="https://raw.githubusercontent.com/realmayus/chime/master/assets/chime_banner.png?token=AJC6B5VTHEZ5UHNY7QNDCU263LCCK") embed.description = "chime is a versatile, yet intuitive music bot for discord. It aims to be as user-friendly as possible while still boasting many features. \n\n" \ "**More info and invite link [here](https://chime.realmayus.xyz)** \n\n" \ "Chime has a **web app** where you can manage and set up personal playlists and manage settings of your servers! https://chime.realmayus.xyz \n\n" \ "**Use** `" + self.clean_prefix + "help [command]` **for more info on a command.**" for cog, commands in mapping.items(): if cog is not None: # We don't want commands without categories! >:c name = cog.qualified_name filtered = await self.filter_commands(commands, sort=True) if filtered: builder = [] for command in commands: # filtering out hidden commands command: Command builder.append(f"`{prefix + command.name}`" if not command.hidden else "") value = ' '.join(builder) if cog and cog.description: value = '{0}\n{1}'.format(cog.description, value) embed.add_field(name=name, value=value) await self.get_destination().send(embed=embed)