From b8c56195c0176a334e78105cb8f211416fd43a7c Mon Sep 17 00:00:00 2001 From: Uwe Pfeifer Date: Sun, 4 Sep 2022 16:16:15 +0200 Subject: [PATCH] just last line in pybot-f.py and to have all changes on the gitea :) --- .idea/pybot-f.iml | 1 + pybot-f.py | 8 +++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.idea/pybot-f.iml b/.idea/pybot-f.iml index 2af8bd7..d107a45 100644 --- a/.idea/pybot-f.iml +++ b/.idea/pybot-f.iml @@ -3,6 +3,7 @@ + diff --git a/pybot-f.py b/pybot-f.py index e0c21b1..24f9f32 100644 --- a/pybot-f.py +++ b/pybot-f.py @@ -18,20 +18,17 @@ logger.addHandler(handler) # The bots' description description = '''Testing this bot stuff :)''' - # Intents intents = discord.Intents.default() intents.members = True intents.message_content = True - # Config loading config = configparser.ConfigParser() config.read('bot.ini') bottoken = config['General']['bottoken'] - # Setting up commands.Bot bot = commands.Bot(command_prefix='.', description=description, intents=intents) @@ -51,7 +48,8 @@ async def repeat(ctx, times: int, content='repeating...'): @bot.command() @commands.is_owner() -async def sync(ctx: commands.Context, guilds: commands.Greedy[discord.Object], spec: typing.Optional[typing.Literal["~", "*"]] = None) -> None: +async def sync(ctx: commands.Context, guilds: commands.Greedy[discord.Object], + spec: typing.Optional[typing.Literal["~", "*"]] = None) -> None: if not guilds: if spec == "~": fmt = await ctx.bot.tree.sync(guild=ctx.guild) @@ -96,4 +94,4 @@ async def main(): await bot.start(bottoken) -asyncio.run(main()) \ No newline at end of file +asyncio.run(main())