mirror of
https://github.com/RafaelSolVargas/Vulkan.git
synced 2025-10-29 16:57:23 +00:00
Stability Update
This commit is contained in:
parent
5b4c5b49f1
commit
173b6a7b43
@ -105,7 +105,7 @@ class Control(commands.Cog):
|
|||||||
|
|
||||||
@commands.command(name='invite', help=help.HELP_INVITE, description=help.HELP_INVITE_LONG)
|
@commands.command(name='invite', help=help.HELP_INVITE, description=help.HELP_INVITE_LONG)
|
||||||
async def invite_bot(self, ctx):
|
async def invite_bot(self, ctx):
|
||||||
invite_url = 'https://discordapp.com/oauth2/authorize?client_id={}&scope=bot>)'.format(
|
invite_url = 'https://discordapp.com/oauth2/authorize?client_id={}&scope=bot>'.format(
|
||||||
self.__bot.user.id)
|
self.__bot.user.id)
|
||||||
txt = config.INVITE_MESSAGE.format(invite_url)
|
txt = config.INVITE_MESSAGE.format(invite_url)
|
||||||
|
|
||||||
|
|||||||
@ -279,6 +279,14 @@ class Player(commands.Cog):
|
|||||||
self.__playlist.clear()
|
self.__playlist.clear()
|
||||||
|
|
||||||
async def now_playing(self) -> discord.Embed:
|
async def now_playing(self) -> discord.Embed:
|
||||||
|
if not self.__playing:
|
||||||
|
embed = discord.Embed(
|
||||||
|
title=config.SONG_PLAYER,
|
||||||
|
description=config.PLAYER_NOT_PLAYING,
|
||||||
|
colour=config.COLOURS['blue']
|
||||||
|
)
|
||||||
|
return embed
|
||||||
|
|
||||||
if self.__playlist.looping_one:
|
if self.__playlist.looping_one:
|
||||||
title = config.ONE_SONG_LOOPING
|
title = config.ONE_SONG_LOOPING
|
||||||
else:
|
else:
|
||||||
@ -300,6 +308,9 @@ class Player(commands.Cog):
|
|||||||
return config.ERROR_SHUFFLING
|
return config.ERROR_SHUFFLING
|
||||||
|
|
||||||
async def move(self, pos1, pos2='1') -> str:
|
async def move(self, pos1, pos2='1') -> str:
|
||||||
|
if not self.__playing:
|
||||||
|
return config.PLAYER_NOT_PLAYING
|
||||||
|
|
||||||
try:
|
try:
|
||||||
pos1 = int(pos1)
|
pos1 = int(pos1)
|
||||||
pos2 = int(pos2)
|
pos2 = int(pos2)
|
||||||
@ -315,6 +326,9 @@ class Player(commands.Cog):
|
|||||||
|
|
||||||
async def remove(self, position) -> str:
|
async def remove(self, position) -> str:
|
||||||
"""Remove a song from the queue in the position"""
|
"""Remove a song from the queue in the position"""
|
||||||
|
if not self.__playing:
|
||||||
|
return config.PLAYER_NOT_PLAYING
|
||||||
|
|
||||||
try:
|
try:
|
||||||
position = int(position)
|
position = int(position)
|
||||||
|
|
||||||
|
|||||||
@ -6,6 +6,10 @@ from config import config
|
|||||||
def is_connected(ctx):
|
def is_connected(ctx):
|
||||||
try:
|
try:
|
||||||
voice_channel = ctx.guild.voice_client.channel
|
voice_channel = ctx.guild.voice_client.channel
|
||||||
|
|
||||||
|
if not ctx.guild.voice_client.is_connected():
|
||||||
|
return None
|
||||||
|
else:
|
||||||
return voice_channel
|
return voice_channel
|
||||||
except:
|
except:
|
||||||
return None
|
return None
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user