コード例 #1
0
    async def finished(self):
        self.dead = True
        DB.add_submission(self.contest_id, self.user.id,
                          self.post.id, list(self.keywords), self.img_url)
        return await self.user.send(embed=success_embed(
            '''
            Submission submitted.
            You will be notified soon if your submission is accepted.

            **ID:** `{}`
            (The acceptance/rejection message will contain this ID.)
            '''.format(self.post.id)
        ))