From 517a6648012957a7a4daddc0957d4696349a97b2 Mon Sep 17 00:00:00 2001 From: Jonas Leder Date: Thu, 2 Apr 2020 18:34:41 +0200 Subject: [PATCH] in poll response, don't print the link, use a hyperlink --- bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 0201180..ad4b3a6 100644 --- a/bot.py +++ b/bot.py @@ -285,7 +285,8 @@ async def result(ctx, id):#this function prints the result of a poll embed = discord.Embed(title=poll_message.embeds[0].title, description=description)#prepare the result embed.set_footer(text='enden on ' + datetime.now().strftime("%d.%m.%Y %H:%M:%S"))#set as footer the end time of the poll await poll_message.edit(embed=embed)#edit the origina lmessage and print the results - await ctx.message.channel.send("You can find the result on the original poll: " + poll_message.jump_url)#send a message with a link to the original poll in the chat + embed2 = discord.Embed(title=" ", description="You can find the result of the poll in the original message [here](" + poll_message.jump_url + ").") + await ctx.message.channel.send(embed=embed2)#send a message with a link to the original poll in the chat c.execute("DELETE FROM poll where pollID = ?", [id])#delete the entries from the poll in the database conn.commit()#write the database to disk