From 94beb189ae9bf02ba927a3ccf94bbb5930f70b54 Mon Sep 17 00:00:00 2001 From: TheRandomFurryGuy Date: Tue, 4 Apr 2023 19:56:27 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D1=81=D0=BF=D1=81=D0=BE=D0=BA=20=D0=BA=D0=BE=D0=BC=D0=BC=D0=B0?= =?UTF-8?q?=D0=BD=D0=B4=20=D0=B8=20=D0=BE=D0=B4=D0=BD=D1=83=20=D0=BA=D0=BE?= =?UTF-8?q?=D0=BC=D0=BC=D0=B0=D0=BD=D0=B4=D1=83,=20=D0=B5=D1=81=D1=82?= =?UTF-8?q?=D1=8C=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/bot.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/bot.py b/source/bot.py index a60ba38..2d1401c 100644 --- a/source/bot.py +++ b/source/bot.py @@ -32,4 +32,9 @@ async def on_message(message): if project.issues.create({'title': issue_text,'description': 'Something useful here.'}): await message.channel.send("Задача «" + issue_text + "» создана.") +command_issue = discord.app_commands.command(name="issue", description="создать задачу на GitLab", nsfw=False, auto_locale_strings=False) + +add_command(command_issue, *, guild=None, guilds=None, override=True) +await sync(*, guild=None) + discord_bot.run(environ.get("TOKEN_DISCORD")) \ No newline at end of file