update examples
This commit is contained in:
parent
42d886554e
commit
2cab4cb7d0
|
|
@ -101,13 +101,13 @@ class Music(commands.Cog):
|
||||||
await self.pomice.create_node(
|
await self.pomice.create_node(
|
||||||
bot=self.bot,
|
bot=self.bot,
|
||||||
host="127.0.0.1",
|
host="127.0.0.1",
|
||||||
port="3030",
|
port=3030,
|
||||||
password="youshallnotpass",
|
password="youshallnotpass",
|
||||||
identifier="MAIN",
|
identifier="MAIN",
|
||||||
)
|
)
|
||||||
print(f"Node is ready!")
|
print(f"Node is ready!")
|
||||||
|
|
||||||
async def required(self, ctx: commands.Context):
|
def required(self, ctx: commands.Context):
|
||||||
"""Method which returns required votes based on amount of members in a channel."""
|
"""Method which returns required votes based on amount of members in a channel."""
|
||||||
player: Player = ctx.voice_client
|
player: Player = ctx.voice_client
|
||||||
channel = self.bot.get_channel(int(player.channel.id))
|
channel = self.bot.get_channel(int(player.channel.id))
|
||||||
|
|
@ -119,7 +119,7 @@ class Music(commands.Cog):
|
||||||
|
|
||||||
return required
|
return required
|
||||||
|
|
||||||
async def is_privileged(self, ctx: commands.Context):
|
def is_privileged(self, ctx: commands.Context):
|
||||||
"""Check whether the user is an Admin or DJ."""
|
"""Check whether the user is an Admin or DJ."""
|
||||||
player: Player = ctx.voice_client
|
player: Player = ctx.voice_client
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue