1
0
Fork 0
mirror of synced 2024-06-29 03:30:57 +12:00

Printed a message when a poll is remvoed

This commit is contained in:
phxntxm 2016-08-14 00:42:57 -05:00
parent c77a55cf80
commit 595496103b

View file

@ -109,6 +109,7 @@ class Strawpoll:
del server_polls[poll_id]
all_polls[ctx.message.server.id] = server_polls
config.saveContent('strawpolls', all_polls)
await self.bot.say("I have just removed the poll with the ID {}".format(poll_id))
else:
fmt = "\n".join("{}: {}".format(data['title'], _poll_id) for _poll_id, data in server_polls)
await self.bot.say("Here is a list of the polls on this server:\n```\n{}```".format(fmt))