reset poll on resolve
This commit is contained in:
parent
bdf3bc8ce4
commit
a3896896a1
|
@ -75,6 +75,7 @@ namespace dotbot.Commands
|
||||||
var poll = _polls[pollId];
|
var poll = _polls[pollId];
|
||||||
poll.IsOpen = false;
|
poll.IsOpen = false;
|
||||||
await ReplyAsync($"the winner was **{poll.Winner}**\nwith {poll.Winner.Votes} votes");
|
await ReplyAsync($"the winner was **{poll.Winner}**\nwith {poll.Winner.Votes} votes");
|
||||||
|
poll = null;
|
||||||
}
|
}
|
||||||
else await ReplyAsync("you haven't started any polls");
|
else await ReplyAsync("you haven't started any polls");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue