From 0b67796c8d37736d2dd3e536d52b501c312b00ad Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sat, 13 Aug 2016 22:56:44 -0500 Subject: [PATCH] Corrected printing of the polls --- cogs/strawpoll.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/strawpoll.py b/cogs/strawpoll.py index 4181325..40419f6 100644 --- a/cogs/strawpoll.py +++ b/cogs/strawpoll.py @@ -50,8 +50,8 @@ class Strawpoll: fmt_options = "\n\t".join("{}: {}".format(data['options'][i], data['votes'][i]) for i in range(data['options'])) author = self.bot.get_member(poll['author']) created_ago = (pendulum.parse(poll['date'])-pendulum.utcnow()).in_words() - fmt = "Link: {}\nTitle: {}\nAuthor: {}\nCreated: {}\nOptions:\n\t{}".format("https://strawpoll.me{}".format( - str(poll_id)), data['title'], author,created_ago,fmt_options) + link = "https://strawpoll.me{}".format(str(poll_id)) + fmt = "Link: {}\nTitle: {}\nAuthor: {}\nCreated: {}\nOptions:\n\t{}".format(link, data['title'], author.display_name, created_ago, fmt_options) await self.bot.say("```\n{}```".format(fmt))