Black code reformatting

This commit is contained in:
Parker M. 2024-03-31 01:08:13 -05:00
parent 978b6a48f2
commit 6fca198184
No known key found for this signature in database
GPG Key ID: 95CD2E0C7E329F2A
12 changed files with 2 additions and 16 deletions

View File

@ -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(),
) )

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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()

View File

@ -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)