Printed a message when a poll is remvoed
This commit is contained in:
parent
c77a55cf80
commit
595496103b
1 changed files with 1 additions and 0 deletions
|
@ -109,6 +109,7 @@ class Strawpoll:
|
||||||
del server_polls[poll_id]
|
del server_polls[poll_id]
|
||||||
all_polls[ctx.message.server.id] = server_polls
|
all_polls[ctx.message.server.id] = server_polls
|
||||||
config.saveContent('strawpolls', all_polls)
|
config.saveContent('strawpolls', all_polls)
|
||||||
|
await self.bot.say("I have just removed the poll with the ID {}".format(poll_id))
|
||||||
else:
|
else:
|
||||||
fmt = "\n".join("{}: {}".format(data['title'], _poll_id) for _poll_id, data in server_polls)
|
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))
|
await self.bot.say("Here is a list of the polls on this server:\n```\n{}```".format(fmt))
|
||||||
|
|
Loading…
Reference in a new issue