diff --git a/electionsbot/cogs/election.py b/electionsbot/cogs/election.py index 0d43133..dc3680e 100644 --- a/electionsbot/cogs/election.py +++ b/electionsbot/cogs/election.py @@ -134,6 +134,11 @@ async def allCandidateDetails(self, ctx): for candidate in self.getAllCandidates(): await ctx.send(embed=candidate.getEmbed()) + @commands.has_role(ROOT_ROLE_ID) + @commands.command(aliases=["voters"]) + async def voterCount(self, ctx): + return await ctx.send(f"{await connectPostgres().fetchval('SELECT COUNT(*) FROM votes')} votes recorded!") + @commands.has_role(ROOT_ROLE_ID) @commands.command(aliases=["electiontotals"]) async def viewTotals(self, ctx):