Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[V3 Audio] Add Lavalink Jar build to settings #1430

Merged
merged 9 commits into from
Apr 17, 2018
7 changes: 5 additions & 2 deletions redbot/cogs/audio/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import heapq
import lavalink
import math
import redbot.core
from discord.ext import commands
from redbot.core import Config, checks, bank

Expand Down Expand Up @@ -203,6 +204,7 @@ async def settings(self, ctx):
dj_enabled = data['dj_enabled']
jukebox = data['jukebox']
jukebox_price = data['jukebox_price']
jarbuild = redbot.core.__version__

vote_percent = data['vote_percent']
msg = ('```ini\n'
Expand All @@ -221,7 +223,8 @@ async def settings(self, ctx):
'Skip percentage: [{vote_percent}%]\n').format(**data)
msg += ('---Lavalink Settings---\n'
'Cog version: [{}]\n'
'External server: [{use_external_lavalink}]```').format(__version__, **global_data)
'Jar build: [{}]\n'
'External server: [{use_external_lavalink}]```').format(__version__, jarbuild, **global_data)

embed = discord.Embed(colour=ctx.guild.me.top_role.colour, description=msg)
return await ctx.send(embed=embed)
Expand Down Expand Up @@ -559,7 +562,7 @@ async def _playlist_info(self, ctx, playlist_name):
else:
playlist_url = 'URL: <{}>'.format(playlist_url)
embed = discord.Embed(colour=ctx.guild.me.top_role.colour, title='Playlist info for {}:'.format(playlist_name),
description='Author: **{}**\n{}'.format(author_obj,
description='Author: **{}**\n{}'.format(author_obj,
playlist_url))
if track_len > 1:
embed.set_footer(text='{} tracks'.format(track_len))
Expand Down