добавил спсок комманд и одну комманду, есть ошибка
This commit is contained in:
parent
256d7c019b
commit
94beb189ae
1 changed files with 5 additions and 0 deletions
|
@ -32,4 +32,9 @@ async def on_message(message):
|
||||||
if project.issues.create({'title': issue_text,'description': 'Something useful here.'}):
|
if project.issues.create({'title': issue_text,'description': 'Something useful here.'}):
|
||||||
await message.channel.send("Задача «" + issue_text + "» создана.")
|
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"))
|
discord_bot.run(environ.get("TOKEN_DISCORD"))
|
Loading…
Add table
Reference in a new issue