reset poll on resolve

This commit is contained in:
Ben Harris 2017-12-12 11:56:08 -05:00
parent bdf3bc8ce4
commit a3896896a1
1 changed files with 1 additions and 0 deletions

View File

@ -75,6 +75,7 @@ namespace dotbot.Commands
var poll = _polls[pollId];
poll.IsOpen = false;
await ReplyAsync($"the winner was **{poll.Winner}**\nwith {poll.Winner.Votes} votes");
poll = null;
}
else await ReplyAsync("you haven't started any polls");
}