Black code reformatting
This commit is contained in:
parent
978b6a48f2
commit
6fca198184
@ -10,7 +10,7 @@ class MyBot(commands.Bot):
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__(
|
super().__init__(
|
||||||
command_prefix="***",
|
command_prefix="***",
|
||||||
activity=discord.Game(name='music!'),
|
activity=discord.Game(name="music!"),
|
||||||
intents=discord.Intents.default(),
|
intents=discord.Intents.default(),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -11,7 +11,6 @@ class Clear(commands.Cog):
|
|||||||
def __init__(self, bot):
|
def __init__(self, bot):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
|
|
||||||
|
|
||||||
@app_commands.command()
|
@app_commands.command()
|
||||||
@app_commands.check(Music.create_player)
|
@app_commands.check(Music.create_player)
|
||||||
async def clear(self, interaction: discord.Interaction):
|
async def clear(self, interaction: discord.Interaction):
|
||||||
|
@ -12,7 +12,6 @@ class NowPlaying(commands.Cog):
|
|||||||
def __init__(self, bot):
|
def __init__(self, bot):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
|
|
||||||
|
|
||||||
@app_commands.command()
|
@app_commands.command()
|
||||||
@app_commands.check(Music.create_player)
|
@app_commands.check(Music.create_player)
|
||||||
async def np(self, interaction: discord.Interaction):
|
async def np(self, interaction: discord.Interaction):
|
||||||
|
@ -11,7 +11,6 @@ class Pause(commands.Cog):
|
|||||||
def __init__(self, bot):
|
def __init__(self, bot):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
|
|
||||||
|
|
||||||
@app_commands.command()
|
@app_commands.command()
|
||||||
@app_commands.check(Music.create_player)
|
@app_commands.check(Music.create_player)
|
||||||
async def pause(self, interaction: discord.Interaction):
|
async def pause(self, interaction: discord.Interaction):
|
||||||
|
@ -17,7 +17,6 @@ class Play(commands.Cog):
|
|||||||
def __init__(self, bot):
|
def __init__(self, bot):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
|
|
||||||
|
|
||||||
@app_commands.command()
|
@app_commands.command()
|
||||||
@app_commands.check(Music.create_player)
|
@app_commands.check(Music.create_player)
|
||||||
@app_commands.describe(query="Name or link of song")
|
@app_commands.describe(query="Name or link of song")
|
||||||
|
@ -13,7 +13,6 @@ class Queue(commands.Cog):
|
|||||||
def __init__(self, bot):
|
def __init__(self, bot):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
|
|
||||||
|
|
||||||
@app_commands.command()
|
@app_commands.command()
|
||||||
@app_commands.check(Music.create_player)
|
@app_commands.check(Music.create_player)
|
||||||
@app_commands.describe(page="Queue page number - leave blank if you are unsure")
|
@app_commands.describe(page="Queue page number - leave blank if you are unsure")
|
||||||
|
@ -11,7 +11,6 @@ class Remove(commands.Cog):
|
|||||||
def __init__(self, bot):
|
def __init__(self, bot):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
|
|
||||||
|
|
||||||
@app_commands.command()
|
@app_commands.command()
|
||||||
@app_commands.check(Music.create_player)
|
@app_commands.check(Music.create_player)
|
||||||
@app_commands.describe(number="Song number to have removed")
|
@app_commands.describe(number="Song number to have removed")
|
||||||
|
@ -11,7 +11,6 @@ class Resume(commands.Cog):
|
|||||||
def __init__(self, bot):
|
def __init__(self, bot):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
|
|
||||||
|
|
||||||
@app_commands.command()
|
@app_commands.command()
|
||||||
@app_commands.check(Music.create_player)
|
@app_commands.check(Music.create_player)
|
||||||
async def resume(self, interaction: discord.Interaction):
|
async def resume(self, interaction: discord.Interaction):
|
||||||
|
@ -11,7 +11,6 @@ class Shuffle(commands.GroupCog, name="shuffle"):
|
|||||||
def __init__(self, bot):
|
def __init__(self, bot):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
|
|
||||||
|
|
||||||
@app_commands.command(name="on")
|
@app_commands.command(name="on")
|
||||||
@app_commands.check(Music.create_player)
|
@app_commands.check(Music.create_player)
|
||||||
async def shuffle_on(self, interaction: discord.Interaction):
|
async def shuffle_on(self, interaction: discord.Interaction):
|
||||||
|
@ -11,7 +11,6 @@ class Stop(commands.Cog):
|
|||||||
def __init__(self, bot):
|
def __init__(self, bot):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
|
|
||||||
|
|
||||||
@app_commands.command()
|
@app_commands.command()
|
||||||
@app_commands.check(Music.create_player)
|
@app_commands.check(Music.create_player)
|
||||||
async def stop(self, interaction: discord.Interaction):
|
async def stop(self, interaction: discord.Interaction):
|
||||||
|
@ -6,7 +6,6 @@ class TreeSync(commands.Cog):
|
|||||||
def __init__(self, bot):
|
def __init__(self, bot):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
|
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
@commands.dm_only()
|
@commands.dm_only()
|
||||||
@commands.is_owner()
|
@commands.is_owner()
|
||||||
|
@ -30,11 +30,7 @@ except FileNotFoundError:
|
|||||||
"BOT_COLOR": "",
|
"BOT_COLOR": "",
|
||||||
}
|
}
|
||||||
|
|
||||||
config["LAVALINK"] = {
|
config["LAVALINK"] = {"HOST": "", "PORT": "", "PASSWORD": ""}
|
||||||
"HOST": "",
|
|
||||||
"PORT": "",
|
|
||||||
"PASSWORD": ""
|
|
||||||
}
|
|
||||||
|
|
||||||
with open("config.ini", "w") as configfile:
|
with open("config.ini", "w") as configfile:
|
||||||
config.write(configfile)
|
config.write(configfile)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user