From a3896896a1889a958d9eaf9015d4e22a9c5da884 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Tue, 12 Dec 2017 11:56:08 -0500 Subject: [PATCH] reset poll on resolve --- Commands/Polls.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Commands/Polls.cs b/Commands/Polls.cs index 2ae6020..77c6e03 100644 --- a/Commands/Polls.cs +++ b/Commands/Polls.cs @@ -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"); }