Add closer to ticket detail view

This commit is contained in:
Dustin Pianalto 2020-04-25 23:39:20 -08:00
parent 8cd2b157d6
commit 5093ba8e2a
2 changed files with 6 additions and 1 deletions

View File

@ -18,7 +18,8 @@ RUN apk update && \
# https://docs.djangoproject.com/en/dev/ref/django-admin/#dbshell
&& apk add postgresql-client \
# Install git
&& apk add git openssh-client
&& apk add git openssh-client \
&& apk add ghc
RUN mkdir /code
WORKDIR /code

View File

@ -248,6 +248,10 @@ class Tickets(commands.Cog):
pag.add(f'{author.display_name}: {comment["content"]}', keep_intact=True)
else:
pag.add('No Comments')
if request.get('completed'):
closer = ctx.guild.get_memeber(int(request.get('completed_by_id')))
pag.add(f'Closed By: {closer.username}#{closer.discriminator}\n{request.get("completed_message")}')
book = Book(pag, (None, ctx.channel, self.bot, ctx.message))
await book.create_book()
else: