Accept black
formatting
This commit is contained in:
parent
c21db908a5
commit
13e9b37ce3
10
code/bot.py
10
code/bot.py
@ -14,7 +14,7 @@ class MyBot(commands.Bot):
|
|||||||
command_prefix="***",
|
command_prefix="***",
|
||||||
activity=discord.Game(name="music!"),
|
activity=discord.Game(name="music!"),
|
||||||
intents=discord.Intents.default(),
|
intents=discord.Intents.default(),
|
||||||
tree_cls=Tree
|
tree_cls=Tree,
|
||||||
)
|
)
|
||||||
|
|
||||||
async def setup_hook(self):
|
async def setup_hook(self):
|
||||||
@ -23,7 +23,9 @@ class MyBot(commands.Bot):
|
|||||||
for ext in os.listdir("./code/cogs"):
|
for ext in os.listdir("./code/cogs"):
|
||||||
if ext.endswith(".py"):
|
if ext.endswith(".py"):
|
||||||
if ext[:-3] == "feedback" and config.FEEDBACK_CHANNEL_ID == None:
|
if ext[:-3] == "feedback" and config.FEEDBACK_CHANNEL_ID == None:
|
||||||
config.LOG.info("Skipped loading feedback cog - channel ID not provided")
|
config.LOG.info(
|
||||||
|
"Skipped loading feedback cog - channel ID not provided"
|
||||||
|
)
|
||||||
continue
|
continue
|
||||||
if ext[:-3] == "bug" and config.BUG_CHANNEL_ID == None:
|
if ext[:-3] == "bug" and config.BUG_CHANNEL_ID == None:
|
||||||
config.LOG.info("Skipped loading bug cog - channel ID not provided")
|
config.LOG.info("Skipped loading bug cog - channel ID not provided")
|
||||||
@ -50,7 +52,7 @@ async def on_ready():
|
|||||||
|
|
||||||
@bot.event
|
@bot.event
|
||||||
async def on_command_error(ctx, error):
|
async def on_command_error(ctx, error):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
@tasks.loop(minutes=45)
|
@tasks.loop(minutes=45)
|
||||||
@ -68,4 +70,4 @@ async def get_access_token():
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
config.load_config()
|
config.load_config()
|
||||||
bot.run(config.TOKEN)
|
bot.run(config.TOKEN)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user